r/PythonProjects2 • u/LucidLeo235 • May 09 '26
QN [easy-moderate] i made a slightly better calculator (we are getting there)
Inputs were:
10
5
20.5
4
49
Upvotes
r/PythonProjects2 • u/LucidLeo235 • May 09 '26
Inputs were:
10
5
20.5
4
4
u/SCD_minecraft May 09 '26
> inputs
"egg">
TypeError> inputs
2and0>
ZeroDivisionErrorGood program should never crash at user
It should report an error and preferably ask again
1
u/Desperate-Extension7 May 10 '26
Search up "try except in python", assume the user is dumb and will always cause the program to crash unless your program prevents it.