learning-to-code/python/iden.py

11 lines
148 B
Python
Raw Normal View History

2019-07-02 04:03:07 +00:00
name = "Matt"
first = name
age = 1000
print(id(age))
age = age + 1
print(id(age))
names = []
print(id(names))
names.append("Fred")
print(id(names))