Re: [Tutor] a simple keyboard art,,, gone wrong!

2008-09-21 Thread rui
Try to put a 'r' letter before the opening-quote:

print \
 r"""
 _   ___   ___  ___  _
/  ___| /   | /   |/   ||  ___|
| |/ /| |/ /|   /| || |__
| |  _/ __| |   / / |__/ | ||  __|
| |_| |  / /  | |  / /   | || |___
\_/ /_/   |_| /_/|_||_|

 _   _ __   ___
/  _  \ | |   / /  |  |  |  _  \
| | | | | |  / /   | |__ | |_| |
| | | | | | / /|  __||  _  /
| |_| | | |/ / | |   | | \ \
\_/ |___/  |__|  |_|  \_\

"""


Python was trying to interpret the '\'.
Cheers.
[ rui ]
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] a simple keyboard art,,, gone wrong!

2008-09-20 Thread Alan Gauld


"Johnny" <[EMAIL PROTECTED]> wrote 


I was trying to get this keyboard art to work in Idle


Remember that keyboard (aka ASCII) art relies on a monospaced font.
Which font are you using to compose? And which in the shell window?

HTH,

Alan G

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] a simple keyboard art,,, gone wrong!

2008-09-20 Thread Johnny




I am a beginner programmer.
I was trying to get this keyboard art to work in Idle

I created it in Script mode, and it looks perfect. When I "copy &
paste" it to 
try it in interactive mode, it is all scrabbled. See below for the mess
up view.
It suspose to say simply, "Game Over"


print \
  """
 _   ___   ___  ___  _
/  ___| /   | /   |/   |    |  ___|
| |    / /| |    / /|   /| |    | |__
| |  _    / __| |   / / |__/ | |    |  __|
| |_| |  / /  | |  / /   | |    | |___   
\_/ /_/   |_| /_/    |_|    |_|

 _   _ __   __    _
/  _  \ | |   / /  |  |  |  _  \
| | | | | |  / /   | |__ | |_| |
| | | | | | / /    |  __|    |  _  /
| |_| | | |/ / | |   | | \ \
\_/ |___/  |__|  |_|  \_\

"""




___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor