I'm unsure if this is a homework project/question but if it isn't I guess you could just jumble them up using random.sample
(I will un-iclude the sleep
as there seems to be no need for it nor did you explain it's reasoning):
from random import sample
s = "abcdefghijklmnopqrstuvwxyz1234567890"
print(*sample(s, k=len(s)), sep='')
Sample result:
urftloqb38swz1ma9x5yg4p2ceijdhnk07v6
Also just fyi, the string you are using can be made pragmatically using the string library:
>>> import string
>>> string.ascii_lowercase + string.digits
abcdefghijklmnopqrstuvwxyz0123456789
It does have the 0
before the 1
instead of at the end but considering what you're doing it shouldn't make any meaningful difference.