[Tutor] Trying to get this to work - attached is the source code

Peter cyclespoke at windstream.net
Mon May 17 16:29:58 CEST 2010


Attached is the source code which accompanies the book and lessons. When 
I type it in I do not get the same result. I do not get the block 
lettering, or am I supposed to?
Peter
-------------------------------------------------------------------------------------------

Hello,
>  I am at the very beginning of learning Python. If anyone is familiar
>  with Michael Dawson's book: "Python Programming for the Absolute
>  Beginner" The following script (according to the book) should create
>  "block lettering" created by dashes and vertical lines. If I could
>  show a picture of it I would.


----------------------------------------------------------------------------------------------

Below I have copied and pasted what appears after running the 
accompanied source code. When I type it manually, I cant get it to work.

# Game Over - Version 2
# Demonstrates the use of quotes in strings

print("Program 'Peter Stein' 2.0")

print("Same", "message", "as before")

print("Just",
       "a bit",
       "smaller")

print("Here", end=" ")
print("it is...")

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

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

         """
      )

input("\n\nPress the enter key to exit.")
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: game_over2.py
URL: <http://mail.python.org/pipermail/tutor/attachments/20100517/2a93c3a1/attachment.ksh>


More information about the Tutor mailing list