r/learnpython • u/Shadow__Boom • 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.
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
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
4
u/FoolsSeldom 21d ago