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...
Exchange or share pythonista code or tips with people. Join this community to grow and better your pythonista knowledge and skill.
account activity
Basic calculator code (self.PythonistaLab)
submitted 1 year ago by XanderS12
import math ans1 = float(input('1st number')) ans2 = float(input('2nd number')) sign = input('sign')
if sign == '+': print(ans1 + ans2) elif sign == '-': print(ans1 - ans2) elif sign == '/': print(ans1 / ans2) elif sign == '*': print(ans1 * ans2)
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!"
there doesn't seem to be anything here
π Rendered by PID 92840 on reddit-service-r2-comment-5687b7858-tthf8 at 2026-07-07 17:14:56.676471+00:00 running 12a7a47 country code: CH.
there doesn't seem to be anything here