[Courses] [python] Lesson 1: Hello world

Larry Cafiero larry.cafiero at gmail.com
Fri Jun 17 23:23:36 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.

2.7.1 on Fedora 15 KDE

> 2. Why are there two commas in
>    print "Hello,", name
>    ? What do you think the difference is between them?

Because the comma inside the quote mark is part of the text being
printed, and the comma outside the quote mark . . . um . . . does what
the comma does in Python when it's not part of the text in quotes
(how's that for equivocating?). Does it add the space between the
Hello and the name?

> 3. Anyone know why the language was named Python?

To hear those who already know Python, I think it's a reference to
Monty Python's Flying Circus, maybe?

Larry Cafiero

More information about the Courses mailing list