Created
April 25, 2016 11:55
-
-
Save xnyo/77bace118b564fd707291016deaaf588 to your computer and use it in GitHub Desktop.
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
import random | |
import sys | |
if len(sys.argv) < 2: | |
print("Usage: dilsessico.py <sentence>") | |
sys.exit() | |
s = " ".join(sys.argv[1:]) | |
s = s.lower().split(" ") | |
r = "" | |
for i in s: | |
i = "".join(random.sample(i, len(i))) | |
r += i+" " | |
print(r) |
la salciccia piccante
al sccialiac cctipnea
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
la salciccia piccante