Here’s a recap of what you’ve covered about object identity:
- Object value vs object identity: Objects that have the same value can be separate objects.
- Small integer caching: The ID of two objects that you might expect to be different can be the same.
Check out the talk Turning ‘wat’ into ‘why’ by Katie McLaughlin that covers an explanation about small integer caching and specifically addresses the Pub Quiz challenge mentioned in this course.
Greish on Dec. 3, 2020
Thank you! Came for learning more about variables, did not get disappointed.