Main.PythonShuffle History
Hide minor edits - Show changes to markup
May 04, 2007, at 02:08 AM EST
by -
Changed line 4 from:
- shuffle2.py by Verbal
to:
- shuffle2.py by Verbal
Changed lines 9-10 from:
cl = list(orig) random.shuffle(cl)
to:
listb = list(orig) random.shuffle(listb)
Changed lines 12-13 from:
- print cl
cl2 = "".join(cl)
to:
- print listb
listc = "".join(listb)
Changed line 15 from:
print " new string = ", cl2
to:
print " new string = ", listc
May 04, 2007, at 01:59 AM EST
by -
Changed lines 4-5 from:
- shuffle2.py shuffle ( randomly mix ) a string of 6 charcters
- by Verbal
to:
- shuffle2.py by Verbal
- shuffle ( randomly mix ) a string of 6 charcters
May 04, 2007, at 01:56 AM EST
by -
Added lines 1-16:
#!/usr/bin/python # # shuffle2.py shuffle ( randomly mix ) a string of 6 charcters # by Verbal # import random orig = "abcdef" cl = list(orig) random.shuffle(cl) # uncomment the line below to see the shuffled characters as a list #print cl cl2 = "".join(cl) print "original string = ", orig print " new string = ", cl2
