diff --git a/16lesson.py b/16lesson.py new file mode 100644 index 0000000..5e6d010 --- /dev/null +++ b/16lesson.py @@ -0,0 +1,22 @@ +# Memory address +p = 10 +e = 10 + +t = id(p) +y = hex(p) + +w = id(e) +v = hex(e) + +# print(p) +# print(t) #decimal value +# print(y) #hex value +# print(v) +# print(w) + +if t == w : + print('Same Memory',t,w) +else: + print('Different memory allocation',t,w) + +