+ 1

What I missed in this or What I did wrong? (I am a Noob)

code: https://code.sololearn.com/ceqS8LVAn76D/#py i made it after looking at sololearn tutorial. Idk what to do. run the code and see yourself

2nd Jun 2020, 7:35 AM
matrix
matrix - avatar
2 Answers
2nd Jun 2020, 7:44 AM
Daljeet Singh
Daljeet Singh - avatar
+ 2
In the division operation u must put this condition elif user_input == "Divide": num1 = float(input("Enter a number: ")) num2 = float(input("Enter another number: ")) If num2 == 0: print(" error ZeroDivision") else: result = str(num1 / num2) print("the answer is: " + result)
2nd Jun 2020, 7:44 AM
Muhammad Galhoum
Muhammad Galhoum - avatar