We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d3d5bc commit 5c4ecc7Copy full SHA for 5c4ecc7
1 file changed
python_calculator.py
@@ -1,7 +1,7 @@
1
def calculator():
2
if choose == 5:
3
quit() #Exit Program
4
- else:
+ elif choose >=6 or choose <= 0:
5
print("\nOops! There not an option with this number to select.\n ")
6
return #Finish Function
7
number1 = float(input("\nInsert the First Number: "))
@@ -27,4 +27,4 @@ def calculator():
27
"\n4 - Division"
28
"\n5 - Exit")
29
choose = int(input("\n"))
30
- calculator()
+ calculator()
0 commit comments