[Courses] [python] Lesson 1: Hello world

christopher bradski chris.bradski at gmail.com
Sun Jun 19 16:25:20 UTC 2011


1. Currently Python 3.2 in Arch linux 64 as python and Python 2.7.2 as
python2.

print statements for those who are curious:
python3:
name = 'chris'
print("hello,", name)

python2.7
name = 'chris'
print "hello,", name

These were in the interactive interpreter :)


On Sun, Jun 19, 2011 at 6:13 AM, Jay McNeely <fitpilam at yahoo.com> wrote:

> 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.
>
> Python 2.7, Ubuntu 10.10
>
> 2. Why are there two commas in
> print "Hello,", name
> ? What do you think the difference is between them?
>
> the first comma is part of the string, the second is used to separate the
> arguments
>
> 3. Anyone know why the language was named Python?
> Pyhton was named after Monty Python.  There are references all over the
> documentation.  :)
>
> -Jay McNeely
> fitpilam at yahoo.com
>
>
> ______________________________**_________________
> Courses mailing list
> Courses at linuxchix.org
> http://mailman.linuxchix.org/**mailman/listinfo/courses<http://mailman.linuxchix.org/mailman/listinfo/courses>
>


More information about the Courses mailing list