import random
possible = '0123456789abcdefghijklmnopqrstuvwxyz'
i = 0
token = ''
while i<10:
temp = random.choice(possible)
print temp
token = token + temp
i=i+1
print temp
But it prints only the last randomly taken character.
print temp displays ten characters correctly though.
Perhaps you meant
instead of
right at the very end?