Skip to content

Instantly share code, notes, and snippets.

@alecordev
Created June 6, 2017 15:07
Show Gist options
  • Save alecordev/4a3d9887dc46660173e2d36b5b6c1c7a to your computer and use it in GitHub Desktop.
Save alecordev/4a3d9887dc46660173e2d36b5b6c1c7a to your computer and use it in GitHub Desktop.
Python REPL
for line in iter(lambda: input('> '), 'exit'):
print(eval(line))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment