0

Why when I run this code it doesn't give me an output

And how to deal with multiple inputs x = input() y= input() op= input() if op == 0 : print (x+y)

23rd Dec 2019, 6:20 AM
Pattern
Pattern - avatar
2 Answers
+ 3
because the input function returns a string...add quotes around the 0 in the if statement or cast the input to an integer
23rd Dec 2019, 6:23 AM
George Samanlian
+ 1
How to deal with multiple inputs? You mean in Code Playground? See if this can help https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
23rd Dec 2019, 8:59 AM
Ipang