Skip to content

Instantly share code, notes, and snippets.

@Strikeskids
Created November 1, 2014 16:54
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 Strikeskids/cc854568c848ba5419bc to your computer and use it in GitHub Desktop.
Save Strikeskids/cc854568c848ba5419bc to your computer and use it in GitHub Desktop.
while True:
cmd = raw_input()
noprint =False
noexec =False
if cmd[0]=='x':
noprint=True
if cmd[0]=='p':
noexec=True
if not noexec:
print('Executing',cmd[1:])
fin.write(cmd[1:]+'\n')
if not noprint:
print(fout.readline(),end='')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment