New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Can someone help me in fixing this error
2 Answers
+ 10
Your code is fine. The Sololearn playground is not interactive, it takes all inputs upfront in the same popup. Use line breaks, for example:
1
2
+
Then 3 is printed.
+ 1
Thanks a lot