python3-in-one-pic
python3-in-one-pic copied to clipboard
The case sensitivity example enforces bad intuition.
Names in Python are references to boxes, not variables. The is operator does not compare identity of names, it compares identity of values:
>>> a = 1
>>> A = 1
>>> print(a is not A)
False