Y | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Y

X=int(input()) Y=int(input()) print(X+Y) Why is this code wrong ?????? Please explain

3rd Dec 2022, 8:05 PM
34 Akash
34 Akash - avatar
7 Answers
- 2
It's not working
3rd Dec 2022, 8:14 PM
34 Akash
34 Akash - avatar
+ 5
Are you doing the inputs on separate lines? Like this 10 //new line/enter key 20
3rd Dec 2022, 8:46 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
This code is not wrong, it is working.
3rd Dec 2022, 8:13 PM
JaScript
JaScript - avatar
+ 1
the code is working, you need to enter integers (1, 2, 4 ...)
5th Dec 2022, 3:27 PM
Leonidus G
Leonidus G - avatar
0
Why ?
3rd Dec 2022, 8:14 PM
34 Akash
34 Akash - avatar
0
No
3rd Dec 2022, 8:53 PM
34 Akash
34 Akash - avatar