Referencing local variable before assignment results in unexpected behavior

While I don’t want to echo Dijkstra’s comment about BASIC in relation to Python 2 (it deserves much better), a lot of its design choices make transitioning to languages that mesh better with a functional style difficult.

Ironically, this includes Python 3.

3 Likes