Ask coding questions

← Back to all posts
Song Lyrics got messed up in Python Lmao...
SomeBoyPlayz

Hey everyone,

I was making a repl that could print Never Gonna Give You Up's lyrics when run. But the multiple ' in the song made it all messed up.

Can someone provide a code that ignores the multiple ' in the lyrics and only uses the first ' and last '?

Thanks in advance <33

Answered by MrVoo [earned 5 cycles]
View Answer
Voters
SomeBoyPlayz
Comments
hotnewtop
MrVoo

Use triple single quotes, like this: print('''hi''')

SomeBoyPlayz

@MrVoo thanks! it worked