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.

23

u/shitbo Nov 20 '15

Do people actually memorize the code for walking through a directory in python? I have only had to use this once; there's no way I'd remember how to do it off the top of my head. And I don't think that knowledge of something that would take 2 minutes to google is that important.

3

u/freework Nov 20 '15

Welcome to the world of software engineering interviewing...

3

u/[deleted] Nov 20 '15 edited Mar 31 '24

mourn knee mighty scandalous dime start literate relieved shelter smart

This post was mass deleted and anonymized with Redact

1

u/gwax Nov 21 '15

I do a lot of interviewing and I would never ask these sorts of question.