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.

9

u/axonxorz pip'ing aint easy, especially on windows Nov 20 '15

Question 2 was definitely indicative of this. Function name was underscore-spaced, while variable names are camel-cased in hungarian notation. Ay

2

u/banjochicken Nov 20 '15

I was going to nitpick this too but I think the author covers it their first bulletpoint:

be consistent with your naming conventions. If there is a naming convention evident in any sample code, stick to it

So I let them off on that point.

0

u/gamesbrainiac Nov 20 '15

Yea, I agree. Didn't want to talk about that when the whole premise of how to solve the problem was a bad one.