learning-to-code/python/idne.py

11 lines
148 B
Python

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}}