[Tutor] Trying to get this to work - attached is the source code
bob gailer
bgailer at gmail.com
Mon May 17 18:14:07 CEST 2010
On 5/17/2010 10:29 AM, Peter wrote:
>
> 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.
What does "type it manually" mean?
What does can't get it to work" mean?
>
> # 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.")
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
--
Bob Gailer
919-636-4239
Chapel Hill NC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100517/0de9de50/attachment.html>
More information about the Tutor
mailing list