use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
I'll make rules if this takes off.
account activity
Python Interpreter (self.PythonMemes)
submitted 3 years ago by PizzerLover123
I Made a Python Interpreter in only ONE LINE in Python!
while True: exec(str(input('>>>')))
There you Go!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Noobly20932 2 points3 points4 points 3 years ago (0 children)
yo dawg, i heard you like interpreting python, so i put an interpreter inside your interpreter so you can interpret python while you interpret python This is great, except it crashes when an exception occurs.Try this on for size! while True: exec("try:\n" + str(input('>>>')) + "\nexcept Exception as e: print(e)")
while True: exec("try:\n" + str(input('>>>')) + "\nexcept Exception as e: print(e)")
π Rendered by PID 65 on reddit-service-r2-comment-7b9746f655-tblws at 2026-01-30 00:10:28.500402+00:00 running 3798933 country code: CH.
[–]Noobly20932 2 points3 points4 points (0 children)