0

Error

Whats wrong with below code. It does not run. x = input () y = 10 print(x == y)

16th Dec 2018, 6:25 AM
Prabuddh Bhatia
Prabuddh Bhatia - avatar
4 Antworten
+ 7
input() returns a string so you should convert it to integer using int() function
16th Dec 2018, 7:45 AM
Mert Yazıcı
Mert Yazıcı - avatar
+ 6
You should separate multiple inputs using enter button like this: 1st 2nd https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
16th Dec 2018, 8:43 AM
Mert Yazıcı
Mert Yazıcı - avatar
0
It run for me, did you see any error ?
16th Dec 2018, 6:45 AM
Taste
Taste - avatar
0
Ok...now I get it. But can I ask 2 or more input values from user...I get an error from below code x = int(input()) y = int(input()) print (x==y)
16th Dec 2018, 8:30 AM
Prabuddh Bhatia
Prabuddh Bhatia - avatar