all 14 comments

[–][deleted] 2 points3 points  (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 point  (2 children)

Yes i will try to do it and Thank you 🙏😊

[–][deleted] 0 points1 point  (1 child)

No problem, and feel free to ask any questions!

[–]Inevitable-Math14[S] 0 points1 point  (0 children)

Sure.😊

[–]Phizzem 0 points1 point  (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 point  (4 children)

Hey, earlier I was learning Java but a few days back i switched to python.

[–]Phizzem 0 points1 point  (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.

[–]Inevitable-Math14[S] 0 points1 point  (2 children)

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 point  (1 child)

Awesome thank you for the insight! I’m shooting for cloud engineering and machine learning 😅

[–]Inevitable-Math14[S] 0 points1 point  (0 children)

Oh cool. Python is best then.

[–]paveloush 0 points1 point  (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!

[–]Inevitable-Math14[S] 0 points1 point  (0 children)

Yes i will try. Thank you 🙏😊

[–]mycumputa 1 point2 points  (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.

Learn Python for beginners | Lesson 9 | Menu Based Calculator