Table of Contents
Strain your brain!
First things first! * Strings can be tricky sometimes Be careful with chained operations How not to useSlippery Slopes
Deep down, we're all the same.
Disorder within order *
Keep trying... *
Evaluation time discrepancy
is not ... is not
is (not ...)
A tic-tac-toe where X wins in the first attempt!
The chicken-egg problem *
Methods equality and identity
The surprising comma
Strings and the backslashes
Half triple-quoted strings
What's wrong with booleans?
Class attributes and instance attributes
Yielding from... return! *
Mutating the immutable!
The disappearing variable from outer scope
The mysterious key type conversion
Let's see if you can guess this?
Modifying a dictionary while iterating over it StubbornThe Hidden treasures!
The out of scope variable
Deleting a list item while iterating
Lossy zip of iterators *
Loop variables leaking out!
Beware of default mutable arguments!
Catching the Exceptions
Same operands, different story!
Name resolution ignoring class scope
Rounding like a banker *
Needles in a Haystack *
Wild imports *
All sorted? *
Midnight time doesn't exist?
Okay Python, Can you make me fly?Appearances are deceptive! Miscellaneous
goto, but why?
Let's meet Friendly Language Uncle For Life
Even Python understands that love is complicated
Yes, it exists!