Skip to content

Instantly share code, notes, and snippets.

@octopuscabbage
Last active August 29, 2015 14:02
Show Gist options
  • Save octopuscabbage/ccff498b41c7f4ac9830 to your computer and use it in GitHub Desktop.
Save octopuscabbage/ccff498b41c7f4ac9830 to your computer and use it in GitHub Desktop.
S A D B O Y S python interpreter and command line
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