+ 1
What this year should look like
You can't do it right https://code.sololearn.com/cjDAy2XgmFFj/?ref=app
7 odpowiedzi
+ 13
I assume that you have a problem with input in playground. The code itself is working properly.
To input the 2 values you will be prompted by an input window to enter your values. This has to be done in 2 separate lines like:
8
5
then press submit. The result will be shown = 13.
A comment to your code: You don't need to use int() in the following line, because you converted values already directly with the int(input() function.
sum = int(a) + int(b)
+ 3
If you mean output on 2 separate lines then add "\n" new line charecter like
print("first line\n second line") #output 2 lines.
+ 1
What mistakes do I make?
+ 1
Input : ex : Герман Папанов
2 (press enter)
5 (press submit)
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
+ 1
And how to make it so that every number in the video is taken out of the new line
For example, when I type 10 it's 1 input
I have to be "this first number:
Then I type 2 number for example 20, but it also comes out with the same line as "
And the "result" is also displayed on the same struts
+ 1
yes
+ 1
Герман Папанов yes means hoping you got the solution...