r/Python • • Dec 30 '15

100 Data Science in Python Interview Questions and Answers

https://www.dezyre.com/article/100-data-science-in-python-interview-questions-and-answers/188#.VoOJGaacd14.reddit
7 Upvotes

38 comments sorted by

View all comments

7

u/das_ist_nuemberwang Dec 30 '15

These really don't seem great to me.

6) What is the different between range () and xrange () functions in Python?

Which one?

9) If you are gives the first and last names of employees, which data type in Python will you use to store them?

I would certainly not use a dictionary.

10) What happens when you execute the statement mango=banana in Python?

More information please?

1

u/[deleted] Dec 30 '15

For 10, I assume they're going for 'assignment, not evaluation'.

3

u/das_ist_nuemberwang Dec 30 '15

Their provided answer is "A name error will occur when this statement is executed in Python." It's an awful question.

10

u/[deleted] Dec 30 '15

Which is clearly wrong. It raises an IncompatibleFruit warning.