Skip to content

Instantly share code, notes, and snippets.

@xnyo
Created April 25, 2016 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xnyo/77bace118b564fd707291016deaaf588 to your computer and use it in GitHub Desktop.
Save xnyo/77bace118b564fd707291016deaaf588 to your computer and use it in GitHub Desktop.
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)
@m-m-0-0
Copy link

m-m-0-0 commented Jul 4, 2023

la salciccia piccante

@xnyo
Copy link
Author

xnyo commented Jul 4, 2023

la salciccia piccante

al sccialiac cctipnea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment