The perception of order of operations for comparisons can lead to counterintuitive results due to comparisons being chained, unlike C and some other languages
Checking Against Infinity and NaN (not a number)
Comparisons with the non finite values of infinity and NaN (not a number) lead to interesting failure modes. The in
operator can mask some of these failures.
When Assert Does Not Raise
Asserts are a common way to quickly verify that inputs or other conditions are met. Python considers asserts as debug, leading to them sometimes being ignored.
Codec Avatars and Open Sourcing
While on the Codec Avatar team at Meta, I helped the large scale data collection efforts. Here is some details on the open sourced datasets and papers.
How Do You Make a Tuple
Many methods exist within Python to create a tuple. Some are intuitive while others behave in strange ways. While type checking can help, complications abound.