3 Antworten
+ 2
Yes
import random as r
letters = [a,b,c,d,e]
for lett in range(5):
print(r.choice(letters),end='')
Gives you a 5 letter word with random characters from the list. It wont actually mean anything though...
Also think of the letters list as a split string if that helps
+ 2
Not quite clear to me, what you expected to get. Is it that "playground" should be mixed up like "slrnoeaol"?
Any further explanation or sample will be helpful. Thanks!