0
Can we code a line below the line in a print function?
Doubt
4 Answers
+ 1
Line below the line? I'm not sure what you mean.
You can make a line break in a print statement using "\n". So e.g.
print("First line\nSecond line")
Will produce a two line output:
First line
Second line
Is this what you wanted to know?
+ 2
not sure if this is what you mean, but you can print multiple lines in a single print statement by including the newline character \n
print('first\nsecond')
0
didn't get what you're talking
0
I see you're doing the Python for Beginners course. This is explained in lesson 10.1.