463x Filetype PDF File size 0.32 MB Source: henger.org
Sciences
e
Lif
of
sityse Python
cour2008
Univer
crash29,
y Crashcourse
uar
NorwegianPythonJan
HåkonEnger
Dept. of Mathematical Sciences and Technology
Norwegian University of Life Sciences
January 29, 2008
Python
Sciences
e
Lif
of
sityse
cour ◮ General-purpose, high-level programming language
Univer2008 ◮ Published by Guido van Rossum in 1991
crash29,
y
uar ◮ Namedafter Monty Python
NorwegianPythonJan◮ Opensource, BSD-like license
◮ Current production version is 2.5.1 (April 2007)
◮ Python 3.0 will be major revision
◮ not backwards compatible
◮ Supports object-oriented and functional programming
◮ Originally intended to make programming more
accessible to more people
$ python hello.py
Hello, world!
$ chmod ugo+x hello.py
$ ./hello.py
Hello, world!
$
Creating python programs
Sciences
e
Lif
of
sityse
cour hello.py
Univer2008#!/usr/bin/env python
crash29,
y
uar
NorwegianPythonJanprint "Hello, world!"
chmod ugo+x hello.py
$ ./hello.py
Hello, world!
$
Creating python programs
Sciences
e
Lif
of
sityse
cour hello.py
Univer2008#!/usr/bin/env python
crash29,
y
uar
NorwegianPythonJanprint "Hello, world!"
$ python hello.py
Hello, world!
$
no reviews yet
Please Login to review.