#!/usr/bin/python # # shuffle2.py by Verbal # shuffle ( randomly mix ) a string of 6 charcters # import random orig = "abcdef" listb = list(orig) random.shuffle(listb) # uncomment the line below to see the shuffled characters as a list #print listb listc = "".join(listb) print "original string = ", orig print " new string = ", listc
