0
Python Calculator - Any improvements?
Hi All Can anyone recommend any improvements to the below code that I made? Thanks https://code.sololearn.com/cx574pn4MvZl/?ref=app
4 Antworten
+ 6
You can add a try-except statement to prevent Zero division error for division operator.
+ 1
Simba I have now added this in, thank you!!
What do you think?
0
Create it with functions
0
Its_krish01 You have used int, won’t that cause problems if user enters decimal number? Could use float instead