Nov 19, 2022
Your description of the identity of an object is quite misleading. When you create a Citizen object Python gives it a unique identity that never changes.
Assigning that object to the variable citizen1 has nothing to do with its identity. The same object can be assigned to multiple variables at the same time. Also, the same variable can refer to different objects at different times as the program executes.
Identity and variables assignments are different things.