[Tutor] Help!
Jessica Poveda
jpoveda14 at yahoo.com
Wed Sep 30 05:38:31 CEST 2009
I need help writting a program.
1) Random string generation
2) no repeating letters
Can anyone help me,please? I am so confused. The only problem is I have to use the code that is written there but add on to it.
import random
alphabet = "abcdefghijklmnopqrstuvwxyz"
myNewString = ""
for letters in alphabet:
myNewString = myNewString + alphabet[random.randrange(26)]
print myNewString
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090929/4bc40e57/attachment-0001.htm>
More information about the Tutor
mailing list