Created
February 4, 2020 21:55
-
-
Save RyanFleck/23639aa67f5e4b610461a76b00eb5759 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 | |
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)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 .