[Tutor] print string using triple quote
Nick Nguyen
pythonlearner at yahoo.com
Tue Mar 17 05:13:15 CET 2015
Hi,
I use python 3.4.3.
I'm using print function with triple quote, as I understand all the character will be printed as exactly within the triple quote, even with the backslash character. However as you see in the RESULT printout, the first backslash come out OK, but it misses the last backslash, unless I put "\\".
print( ''' ____ _ __ ______ _____ / _ \ | | / / | ___| | _ \
''' )
RESULT:
____ _ __ ______ _____ / _ \ | | / / | ___| | _
Thank for your help.--nick
More information about the Tutor
mailing list