# basics io

Line Breaks Inside a String

You can create a new line inside a single print() call using the special character \n — Python treats it as "start a new line here," not as an actual backslash and n:

print("Up\nDown")

This prints two lines:

Up
Down

Your turn: using one print() call, make the screen show two lines: Line1 then Line2.

💡 need a hint?

pyb-io-print-escape.py
loading...