Python Forum
Multi line strings and Ascii art - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Multi line strings and Ascii art (/thread-2147.html)



Multi line strings and Ascii art - YevesDraco - Feb-22-2017

Hi!
I am programing an RPG at the moment and at several points I use Ascii art.

There is a simple way to print several lines of Ascii art by using a multi line string

For example, In my RPG, I have an Ascii art drawing of my character Yeves Draco.

To get it to print several lines, you simply type

print (""" 


[your ascii art or multiple line string goes here]



""")
You use triple quotation/speech marksĀ  to get it to print several lines.


Hope I was of help to anyone who neded it!






Yeves Draco