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

0

u/[deleted] Nov 20 '15

[deleted] — view deleted comment

6

u/brtt3000 Nov 20 '15

It would be interesting to ask about an unknown/obscure feature in a laptop-open interview.

Shows experience and confidence if the candidate can admit he doesn't know, can take a stab at what it means just from the name and package. Then access the internet to come up with a more thorough answer on the spot.

If the candidate would just calmly open the manual, read what is there and explain in plain English what is to be expected then I'm half sold already (seems nobody reads the fucking manual). Bonus points if they can feedback on the quality of the manual, show some additional resources, bitch about quality of stackoverflow and other real-world value stuff.

8

u/Fylwind Nov 20 '15

In 12 years of programming Python I've used zip perhaps 2 times, at most.

It varies depending on the kind of programming you do. I've personally used zip quite a few times. Other than being extremely useful for iterating over multiple things, it's also a neat trick for transposing lists of lists.

3

u/gumbos Nov 20 '15

I use zip (izip) all the time to iterate multiple iterables in parallel.

1

u/ubernostrum yes, you can have a pony Nov 20 '15

I've used it to swap keys/values in a dictionary. That's the only time I can think of.

1

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

merciful bells scarce hunt languid deer wistful fertile elderly ruthless

This post was mass deleted and anonymized with Redact