r/Python • • Mar 03 '16

Top 30 Mind Bending Python Interview Questions

https://intellipaat.com/interview-question/python-interview-questions/
0 Upvotes

8 comments sorted by

View all comments

5

u/Poffey21 Mar 03 '16

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.

  • object

  • type

  • Exception

  • genexp -- (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.