Why this is not running | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why this is not running

print("enter two numbers") a=int(input()) b=int(input()) c=a+b print("sum is",c)

8th Nov 2023, 7:06 AM
꧁༺Manish Kumar ༻꧂
꧁༺Manish Kumar ༻꧂ - avatar
3 Answers
+ 7
Do you mean it is not running in the playground? The playground is not interactive. After you typing the code and hit the run button, there is a input box for you to enter ALL the inputs the program requires. And the inputs must be separate in different lines. In your case, when you see the input box you can type following in it. 2 4 Then it will return "sum is 6" for you.
8th Nov 2023, 12:37 PM
Wong Hei Ming
Wong Hei Ming - avatar
+ 6
It's working properly Try to input two integers in different lines.
8th Nov 2023, 12:36 PM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 2
it working properly!! just input 2 value, and after interning first value and than press 'enter' Key and input second value
9th Nov 2023, 12:38 PM
Alhaaz
Alhaaz - avatar