[Courses] [python] Lesson 1: Hello world
tungd at live.com
Sat Jun 18 04:26:33 UTC 2011
> ================= Homework =========================
> 1. I'm interested in hearing what version of Python everybody is running,
> on which operating system, distro and version. Please post your results!
> Especially if python3 is the default, or if you have any other problems
> running the examples.
I am on 2.6.5 on Mac OS X 10.6.6
> 2. Why are there two commas in
> print "Hello,", name
> ? What do you think the difference is between them?
The one inside double quotes is part of the printed text, and I guess the
one is used to separate between arguments passed to the print command.
> 3. Anyone know why the language was named Python?
me at tungdao.com | 01652397189
More information about the Courses