my first program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

my first program

Why dosnt this work http://www.sololearn.com/app/JUMP_LINK__&&__python__&&__JUMP_LINK/playground/cetLCp24uHy0/ It runs x fine but not y why ?

23rd Jul 2017, 11:41 PM
jakob8888
jakob8888 - avatar
6 Answers
+ 1
You need to change your code to this. x=int(input()) y=int(input()) z=x+y print(z) and use separate lines for inputting next number.
24th Jul 2017, 12:34 AM
Ferhat Sevim
Ferhat Sevim - avatar
+ 1
It says something about Line 3
24th Jul 2017, 10:08 AM
jakob8888
jakob8888 - avatar
0
I write Line 2 and 3 the same it gets Line to but NOT Line 3 Why.
24th Jul 2017, 10:12 AM
jakob8888
jakob8888 - avatar
24th Jul 2017, 10:27 AM
jakob8888
jakob8888 - avatar
0
I think the input is wrong. you should give nunber one, then press the enter key on your keyboard. Then the second number. And only then the subnit link on the screen. Your second code works if the input is correct. The first code last line contains an "=", it doesn't belong there.
24th Jul 2017, 4:36 PM
Paul
Paul - avatar