after I run this little piece of code, it would always return a list that contains exactly same smaller lists...
import time
from random import randint
t = [0,0]
a = []
def rec():
a.append(t)
for i in range(10):
t[0] = randint(10,20)
t[1] = randint(40,500)
rec()
time.sleep(.0001)
print a
I get something like this as output, why?
[[17, 134], [17, 134], [17, 134], [17, 134], [17, 134], [17, 134], [17, 134], [17, 134], [17, 134], [17, 134]]