30 Introduction to Computational Models with Python
2.4.1 Data Objects
In Python, the data items are known as data object s and every variable refer-
ences a data object. If the value associated w ith a data object does not change,
then the data object is said to be immutable, otherw ise it is mutable.
The three most important attributes of a data object are:
• the identity, which is the location (address) of the data object in the
computer memory;
• the type, which defines the operations are allowed for the data object;
and
• the value, which can be changed (mutable) o r not (immutable).
2.4.2 Variables
As mentioned previously, a varia ble is a reference to a data object a nd the
name of the var iable is used in a program for uniquely identifying the ...