0

Please is anything wrong with this code?

elif user_input == "add": num1 = float(input("Enter a number: ")) num2 = float(input("Enter another number: ")) result = str(num1 + num2) print("The answer is " + result)

28th Oct 2017, 7:27 PM
Kyrian Onyeagusi
Kyrian Onyeagusi - avatar
2 ответов
+ 3
If this is a part of a code then it's right but if it's a standalone code then it's a faulty code
28th Oct 2017, 9:17 PM
Mohammed Hany
Mohammed Hany - avatar
+ 1
Yeah, it's part of a main code trend...
29th Oct 2017, 9:49 AM
Kyrian Onyeagusi
Kyrian Onyeagusi - avatar