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")

3rd Mar 2022, 1:20 PM
haha
5 Answers
+ 2
May we know why you keep asking the same? If you want to know anything you can ask it your previous posts instead
3rd Mar 2022, 1:35 PM
Simba
Simba - avatar
+ 2
What kind of error message you're receiving? Actually, it doesn't work properly in Sololearn. You should try pydroid 3 instead
3rd Mar 2022, 1:56 PM
Simba
Simba - avatar
+ 1
Simba The last print statement is error😑
3rd Mar 2022, 3:05 PM
NonStop CODING
NonStop CODING - avatar
0
line 3: add "5.out" while True: .... .... elif choise == 5: break
3rd Mar 2022, 1:38 PM
Andrey Dugin
0
Simba error
3rd Mar 2022, 1:43 PM
haha