pcc-cis-012-intro-to-programming-python
pcc-cis-012-intro-to-programming-python copied to clipboard
Add discussion of Python oddities when discussing oddities of other languages.
Just add some python oddities to the discussion - good things to be aware of when learning python :)
I'll see if I can find some more to include just so students are aware. Right now I'm thinking of the CPython pylong object where objects assigned values of low integers [-5:256] actually reference the same object.
>>> b = 1
>>> a is b
True
>>> a = 9537
>>> b = 9537
>>> a is b
False```
Great idea! This is definitely a good topic to cover early one.