this is kind of a quick question, but just a bit complex:
say i want it to find n in range(5), i would do this:
for n in range(5):
print n
and it would return 0,1,2,3,4.... but what if instead of returning i want it to put it in a list, say list x, such that if i want i can later say
>>>x
[0,1,2,3,4]
is that possible?