0
please continue this program to loop
num1 = int(input("Enter first number:")) num2 = int(input("Enter second number: ")) print("1. Addition 2.Subtraction 3.Multiplication 4.Division") choice = int(input("Select Operation: ")) if (choice == 1): print('Result is:',num1 + num2) elif (choice == 2): print('Result is:',num1 - num2) elif (choice == 3): print('Result is:',num1 * num2) elif (choice == 4): print('Result is:',num1 / num2) else: print("error")
5 Antworten
+ 2
May we know why you keep asking the same?
If you want to know anything you can ask it your previous posts instead
+ 2
What kind of error message you're receiving?
Actually, it doesn't work properly in Sololearn.
You should try pydroid 3 instead
+ 1
Simba
The last print statement is error😑
0
line 3: add "5.out"
while True:
....
....
elif choise == 5:
break
0
Simba error