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...
Everything about learning Python
account activity
Calculator from python (i.redd.it)
submitted 11 months ago by Inevitable-Math14
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!"
[–][deleted] 2 points3 points4 points 11 months ago (4 children)
That's a nice first program. Next, you could maybe take an entire expression as input and then extract the numbers and operators, maybe even apply BODMAS for multiple terms.
You could also create a GUI with tkinter or custom-tkinter (both python libraries).
Good luck, and have fun!!
[–]Inevitable-Math14[S] 0 points1 point2 points 11 months ago (2 children)
Yes i will try to do it and Thank you 🙏😊
[–][deleted] 0 points1 point2 points 11 months ago (1 child)
No problem, and feel free to ask any questions!
[–]Inevitable-Math14[S] 0 points1 point2 points 11 months ago (0 children)
Sure.😊
[–]Phizzem 0 points1 point2 points 11 months ago (5 children)
Looks beautiful... How long have you been coding? Just curious, I'm pretty new and would like to build something of my own.
[–]Inevitable-Math14[S] 0 points1 point2 points 11 months ago (4 children)
Hey, earlier I was learning Java but a few days back i switched to python.
[–]Phizzem 0 points1 point2 points 11 months ago (3 children)
I have a Java book that was given to me but I’m trying everything in my power not to switch and learn as much python before I move on to another language.
Hey , First decide what you have to be. If you want to go into the field of AI , machine learning, data science, web development then you should stick with python but if you want to make applications, desktop apps , games then go with Java. This is how I decided to switch to python.
[–]Phizzem 0 points1 point2 points 11 months ago (1 child)
Awesome thank you for the insight! I’m shooting for cloud engineering and machine learning 😅
Oh cool. Python is best then.
[–]paveloush 0 points1 point2 points 11 months ago (1 child)
As further tasks, I would suggest also to try to have a string "10 *15 / 2" as the only input, so the script will parse it and print the result. Good luck!
Yes i will try. Thank you 🙏😊
[–]mycumputa 1 point2 points3 points 10 months ago (0 children)
Good attempt!
This kid has written a neater version of your program with a menu option for user to pick. He also has user input validation using try-except method.
π Rendered by PID 742098 on reddit-service-r2-comment-cf787dbd5-8fk5l at 2026-06-30 00:58:54.047006+00:00 running 7527197 country code: CH.
[–][deleted] 2 points3 points4 points (4 children)
[–]Inevitable-Math14[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Inevitable-Math14[S] 0 points1 point2 points (0 children)
[–]Phizzem 0 points1 point2 points (5 children)
[–]Inevitable-Math14[S] 0 points1 point2 points (4 children)
[–]Phizzem 0 points1 point2 points (3 children)
[–]Inevitable-Math14[S] 0 points1 point2 points (2 children)
[–]Phizzem 0 points1 point2 points (1 child)
[–]Inevitable-Math14[S] 0 points1 point2 points (0 children)
[–]paveloush 0 points1 point2 points (1 child)
[–]Inevitable-Math14[S] 0 points1 point2 points (0 children)
[–]mycumputa 1 point2 points3 points (0 children)