MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/48rb5l/top_30_mind_bending_python_interview_questions/d0ly1gg/?context=3
r/Python • u/AkashDaniel • Mar 03 '16
8 comments sorted by
View all comments
5
Advertisement for training services. No question was mind bending.
2 u/[deleted] Mar 03 '16 edited Mar 03 '16 Or even right. 6 built in types? Lol.objecttypeExceptiongenexp -- (x for x in things)range/xrange (depends on if you're 3/2)bytearray, memoryview and bytes in Python 3Unicode in Python 2map, filter are classes in 3float, int and complex are distinct types as well -- add long if you're Py2.That's just the few in builtin I thought of that were missing.Also depends on the definition of "builtin" as well.
2
Or even right. 6 built in types? Lol.
object
type
Exception
genexp -- (x for x in things)
(x for x in things)
range/xrange (depends on if you're 3/2)
bytearray, memoryview and bytes in Python 3
Unicode in Python 2
map, filter are classes in 3
float, int and complex are distinct types as well -- add long if you're Py2.
That's just the few in builtin I thought of that were missing.
Also depends on the definition of "builtin" as well.
5
u/Poffey21 Mar 03 '16
Advertisement for training services. No question was mind bending.