Skip to content

Commit 5c4ecc7

Browse files
Update python_calculator.py
1 parent 9d3d5bc commit 5c4ecc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python_calculator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
def calculator():
22
if choose == 5:
33
quit() #Exit Program
4-
else:
4+
elif choose >=6 or choose <= 0:
55
print("\nOops! There not an option with this number to select.\n ")
66
return #Finish Function
77
number1 = float(input("\nInsert the First Number: "))
@@ -27,4 +27,4 @@ def calculator():
2727
"\n4 - Division"
2828
"\n5 - Exit")
2929
choose = int(input("\n"))
30-
calculator()
30+
calculator()

0 commit comments

Comments
 (0)