When you run the script below in Python, you get the results shown.
1) I don't understand why it's able to print c just fine, but when I say z = shuffle(c) z returns zero. Shouldn't it just give me a mixed up c?
import random
a = list(range(1,99))
b = list(range(1,99))
c =list(range(1,99))
print(c)
x=random.shuffle(a)
y=random.shuffle(b)
z=random.shuffle(c)
print(x)
q=(x,y,z)
print(q)
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98]
None
(None, None, None)
2) Ideally, I want make lots of q points each of which is given an x, y and z so q1=(x1,y1,z1) and q2=(x2,y2,z2) etc. So I thought I could iterate over it, but I'm not sure how to write it in less mathematical terms and more of a python way.
I tried
for i in range(len(x,y,z)):
q=(x[i],y[i],z[i])
But I don't think that's how Python works.