how to print \n in python? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

how to print \n in python?

19th Jul 2020, 9:55 AM
Mr. 12
Mr. 12 - avatar
3 Antworten
+ 12
print("\\n") Hope this helpful! Programming is fun! 😄🤗
19th Jul 2020, 9:57 AM
WenHao1223
WenHao1223 - avatar
+ 2
Another way is to specify that the string is a 'raw-string' : print(r"\n")
19th Jul 2020, 9:59 AM
Théophile
Théophile - avatar
+ 2
Thank You Guys 😊
19th Jul 2020, 10:00 AM
Mr. 12
Mr. 12 - avatar