Actions

Difference between revisions of "Python examples"

From AstroEd

(Created page with "This page contains examples and links to programs used for our Research Methods - Programming with Python short course.")
 
Line 1: Line 1:
 
This page contains examples and links to programs used for our Research Methods - Programming with Python short course.
 
This page contains examples and links to programs used for our Research Methods - Programming with Python short course.
 +
 +
== Very simple Python ==
 +
 +
Start a Python interactive session using the "python" command to get a >>> prompt.
 +
 +
Type
 +
 +
x=1
 +
 +
and you'll see
 +
 +
1

Revision as of 06:42, 7 February 2013

This page contains examples and links to programs used for our Research Methods - Programming with Python short course.

Very simple Python

Start a Python interactive session using the "python" command to get a >>> prompt.

Type

x=1

and you'll see

1