Skip to content

Instantly share code, notes, and snippets.

@RyanFleck
Created February 4, 2020 21: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 RyanFleck/23639aa67f5e4b610461a76b00eb5759 to your computer and use it in GitHub Desktop.
Save RyanFleck/23639aa67f5e4b610461a76b00eb5759 to your computer and use it in GitHub Desktop.
import random
while(True):
x = input(">>> ")
x = list(x)
y = []
for char in x:
if char == " ":
y.append(" ")
else:
char = char.lower()
if random.choice([True,False]):
char = char.upper()
y.append("{} ".format(char))
print("".join(y))
@RyanFleck
Copy link
Author

s O t I R E D O f C S I X X X X I W r o t e A p r O g r a M .

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