New course! Every coder should learn Generative AI!
Try a free lesson0
how to print \n in python?
3 Answers
+ 12
print("\\n")
Hope this helpful! Programming is fun! 😄🤗
+ 2
Another way is to specify that the string is a 'raw-string' :
print(r"\n")
+ 2
Thank You Guys 😊