The fact that you can do `[1, 2][True]` and get `2` because `True` is `1` is hilarious and terrifying. Python’s type system is *flexible* to a fault.
Also, `try...except` with no exception type catches *everything*, even `KeyboardInterrupt`. Learned that the hard way when my script wouldn’t die.
For quick experiments, Jupyter Notebooks are awesome. Lets you test syntax in python line by line without rerunning the whole script.
Also, `try...except` with no exception type catches *everything*, even `KeyboardInterrupt`. Learned that the hard way when my script wouldn’t die.
For quick experiments, Jupyter Notebooks are awesome. Lets you test syntax in python line by line without rerunning the whole script.
