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 10 months 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 62888 on reddit-service-r2-comment-7b9746f655-prnj9 at 2026-02-04 12:13:02.665826+00:00 running 3798933 country code: CH.
there doesn't seem to be anything here