Working_with_a_really_long_string.py


Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...


Code Snippet

novel_first_line="""It was a cold night on planet python and it was interesting to note
that non-printable characters like tab (\t) and newline [\n], will show up. whether explicitly given
as in the brackets above or just by crearting a newline in the variable assignment.
It's handy as you can imagine to be able to store a really long string like this on occasion"""

print(novel_first_line)
                    

Try it yourself