Quick Recap
- Python has multiple elements of surprise and many easter eggs. Some of them are:
- The
antigravity
module. - Working implementation of the
goto
construct. - A feature using curly braces to denote the scope in the
__future__
module (don’t be excited about it though). - A feature using
<>
as the not-compare-equals operator (≠
) in the__future__
module. - The
this
module containing the Zen of Python, and its counter-intuitive code. - The
else
clause for loops and exception handling. - The globally available built-in
Ellipsis
object, which is equivalent to...
and has multiple legitimate uses. - If you do a hash of infinity, it gives out
314159
“” in Python 3 and “” in Python 2.
- The
Get hands-on with 1400+ tech skills courses.