Computer Science, asked by boleba4095, 10 months ago

Can somebody plz explain to me why this python script shows an error

In this Python script for some reason After everything is done or calculated it still shows the last print option but it should only show it when the person chooses an invalid option
Please help me!!




print("Welcome to a calculator")
x=int(input("Enter your first number"))
y=int(input("Enter your second number"))
print("If you want to add press 1, subtract press 2, multiply press 3, and for division press 4")
n=int(input("Please enter your operation"))
z=x + y
c= x - y
v= x*y
m=x/y
if n==1:
print(z)
if n==2:
print(c)
if n==3:
print(v)
if n==4:
print(m)
else:
print("Please choose from the given the options only")








Answers

Answered by usharoutela1984
0

Answer:how can I tell

Explanation:

Similar questions