I don’t understand this section of the lesson:
“By default, each print
statement prints text in a new line. If we want multiple print
statements to print in the same line, we can use the following code:”
1 print(“Hello”, end="")
2 print(“World”)
3
4 print(“Hello”, end=" ")
5 print(“World”)
6
Each number (1-6) represents a line, yes? What is the purpose of lines 1-2 above when you can just type print(“HelloWorld”)? Or print(“Hello World”) for lines 4-5? What exactly does ‘end=’ do?