kanye_quote = """My greatest pain\
in life is that I will never be able to see myself perform live"""
I am trying to create a line break but not having any luck. I am using the """
method to allow for multiple lines. It was my understanding that \ would create a new line but when I run the script, I am not getting a new line. Any Help would be terrific in solving this little problem.
"Line1\nLine2"
or remove the\
in your string literal - see ideone.com/lkrkoS"""
or'''
then a \ won't work. Since it basically tells python continue on the next line from here. With the triple you can just go to a new line ( press enter ). If it is a normal string then add\n
where you want a new line.