r/Python • • Nov 20 '15

15 Essential Python Interview Questions

https://www.codementor.io/python/tutorial/essential-python-interview-questions
71 Upvotes

67 comments sorted by

View all comments

109

u/gamesbrainiac Nov 20 '15 edited Nov 20 '15

This is a terrible article. Some of the questions are good, but most of them are vague, and most of the answers don't use the right conventions. I won't talk about naming conventions, but take a look at the second question, os.walk would've been a much better alternative.

3

u/Workaphobia Nov 20 '15

These are questions for a mediocre course on Python, definitely not an interview.

2

u/madbadanddangerous Nov 20 '15

I found the comment I was going to make. Interviewers are going to ask you what you have done in Python and how long you've used it. MAYBE they'll ask about your problem solving thought process (I've had that question before). No one has ever asked me to tell them how to parse through directories or to look at trivial code to tell them the output.