Built in Data types
Built in Data types
When we create a program, we often like to store values so that it can be used later. We use objects to capture data, which then can be manipulated by computer to provide information. By now we know that object/ variable is a name which refers to a value.
Every object has:
A. An Identity, - can be known using id (object)
B. A type – can be checked using type (object) and
C. A value
Let us study all these in detail
A. Identity of the object: It is the object's address in memory and does not change once it has been created.(We would be referring to objects as variable for now)
B. Type (i.e data type): It is a set of values, and the allowable operations on those values. It can be one of the following: