Created
November 30, 2015 07:29
-
-
Save lorinma/1f965a345e9ab358813f to your computer and use it in GitHub Desktop.
Shuffle the letters in a sentence
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s="HuazhongUniversityofScienceandTechnologyrankedtop19globaluniversityforengineeringin2015" | |
l=list(s) | |
x = [i for i in l] | |
from random import shuffle | |
shuffle(x) | |
x | |
"".join(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment