0

Help again... i dont understand this statement

create a string with three sets of quotes and newlines that are created by pressing enter key will be automatically escaped for you..

5th Jan 2017, 6:22 PM
stephen haokip
stephen haokip - avatar
5 Answers
+ 10
"""this is a preserved comment even if i break lines it's still counted as a comment""" Got it?
5th Jan 2017, 6:30 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 10
you don't have to use "\n" to create a new line since you can do it immediately by pressing "enter"
5th Jan 2017, 6:31 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
python is a big snake
5th Jan 2017, 6:55 PM
stephen haokip
stephen haokip - avatar
+ 2
Python is for Monty Python, not the snake
5th Jan 2017, 7:12 PM
Amaras A
Amaras A - avatar
0
Hi there this means that if you need to write \n in your string & print that, you can use """ instead of " and press Enter in your string, then python automatically replace enter with \m and print it
6th Jan 2017, 12:52 PM
Fuad Zarei
Fuad Zarei - avatar