Fish

Friday, December 18, 2009


Simple example python script:

name = raw_input(" What is your pet name? ")
print "Hello, " + name + "!"

If you run this (remember to save it first), you should see the following prompt
in the inter-preter window: What is your pet name?

Enter your pet name (for example, Bunny) and press Enter.
You should get something like this:

What is your pet name? // You enter your pet name: Bunny //
Hello, Bunny!

0 comments: