Last active
August 29, 2015 14:02
-
-
Save octopuscabbage/ccff498b41c7f4ac9830 to your computer and use it in GitHub Desktop.
S A D B O Y S python interpreter and command line
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 sys | |
def sadify(string): | |
string = str(string) | |
out = "" | |
for char in string: | |
out += char.upper() + " " | |
return out+'B O Y S' | |
if(len(sys.argv)>=2): | |
print(sadify(eval(open(sys.argv[1]).read()))) | |
else: | |
while(True): | |
print(sadify(eval(input("$>")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment