You can print a blank line using the \n special character in python as a standard way. You can use the \n special character when you want to split a string into multiple lines.

print("one \n line")



Ways of printing newline in Python:

  1. Using the \n between the string(the above one)
  2. We can use the print() function to print the newline
  3. You can use the end="\n" option in the print statement.
0 results
Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions