+ 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
2 Réponses
+ 4
I thought, you got it :)
https://www.sololearn.com/Discuss/2326022/?ref=app
+ 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)