This example is just to show the dynamic typing feature of Python.
I agree with you regarding the variables and underlying objects. Actually I wrote on this topic before.
https://medium.com/better-programming/use-id-to-understand-6-key-concepts-in-python-73e0bbd461ec