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.
Anthony De La Rosa on Jan. 6, 2021
Hey Martin :)
I am following this link: realpython.com/learning-paths/python3-introduction/ I am basically following that list of courses one after the other. Sorry about the comment but I was thrown off by it. I plan to complete the whole list and move on to the next part.