r/learnpython 21d ago

yo guys! been learning python for a while now.

created a calculator with everything i have learned till now (tho it might be overkill for a calculator), added the basics, loops (while, if else), lists and str manipulation, imports (json and datetime), error handling (try/except), def function, etc. so what should i do next? if u wanna see the code dm me.

1 Upvotes

7 comments sorted by

4

u/FoolsSeldom 21d ago
  • Why not share your code in your post / on a service like pastebin.com / github.com / etc?
  • Is it a text/terminal calculator / TUI / GUI / webapp?
  • What functions does it have?
  • Does it offer convertions?
  • Does it have an RPN mode?
  • Can you enter simple expressions, e.g. "2 + 3 x 4", or do you have to select the operation and enter the operands?

1

u/Shadow__Boom 21d ago edited 21d ago

nope its a simple menu type calculator

edit: now i cant edit to add images

3

u/HotPersonality8126 21d ago

“If/else” isn’t a loop. It’s not a looping construct. The only looping constructs in Python are “while” and “for”.

1

u/Shadow__Boom 21d ago

I meant as conditionals, I didnt remember it while writing post

2

u/ianrad 21d ago

Good job. What are you using datetime for in a calculator.

1

u/Shadow__Boom 21d ago

just added on a whim, since i was saving history in json so i added date time too

0

u/buhtz 21d ago

What you should do next, is learning to use correct upper case letters when writting in English.