0
Why there is 3 lines in the output for this code? I want only 2 lines ? Pls help
Print("what is your name""\n") X = input() Print("your name is " + (x)
6 Respostas
+ 4
You usually don't need to add a new line at the end of a print statement since in python print statements include a new line at the end by default.
+ 3
Yes. That's an empty line, right?
Your first print statement adds a line break because you used a newline character. But it adds another line break because in python print statements already include a newline character "under the hood".
+ 2
Simon Sauter I understood thanks I deleted the (\n) and it worked there is only 2 lines
0
The third line is in the middle Simon Sauter
0
Iam sorry but may explain the lesson 12 working with variables for me the second part from it because I didn't understand it Simon Sauter