How can I use pointers in python!

num1 = 11, 
num2 = num1
print("Before: ")
print(num1) #11
print(num2) #11
# then let's change num1num1 = 22print("\nAfter\n")
print("num1 =", num1) #22
print("num2 =", num2) #11
dict1 = {
'value': 11
}
dict2 = dict1print("Before: ")print("num1= ", dict1) # {value: 11}
print("num2= ", dict2) # {value: 11}
dict1['value'] = 22print("\nAfter\n")print("num1= ", dict1) # {value: 22}
print("num2= ", dict2) # {value: 22}
dict3 = {'value': 57}dict2 = dict3print (dict2) # {value: 57}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store