Basic Concept of Numbers as Objects
In Python, every number is an object that has its own attributes and methods. This concept might sound strange at first, but it's actually very simple. Think of numbers like a box that not only contains a value, but also has special capabilities that you can use.
When you write or , Python doesn't just store that number, but also provides various functions that you can call to manipulate or get information from that number.