Code 1
nums = [1, 2, 3]
tri = nums
nums.append(4)
print(tri) //this prints [1, 2, 3, 4]
Code 2
num = 9
num2 = num
num = 12
print num2 // this prints 9 **BUT I expected 12 like abouve code**
My Ques is Why there is a Difference between these two outputs when the the Procedure and Assignments are almost Similar ?