Python3
Stepprd in
written by Professor Do Wan Kim
Department of Mathematics
Inha University
Numeric Types: Operators
Numeric Types: Operators
Immutable Constraints
Sets can only contains immutable object types.
list is mutable ( X )
dictionary is mutable ( X )
tuple is immutable ( O )
Variable, Object, Reference
1. create an object to represent the value “3”
3. link the variable “a” to the new object “3”
2. create the variable “a” if it does not yet exist
reference
variable object (in memory)
a 3
Variable, Object, Reference
reference
variable object (in memory)
a 3
b ‘new one’