Handbook of the Physics Computing Course (Python language)
Next:
Contents
Handbook of the Physics Computing Course (Python language)
MJW/CRW/AOH
University of Oxford
Sub-faculty of Physics
2002-2003
Contents
1. Introduction
1.1 The Computing Course and Laboratory
1.2 The Python course
1.3 The marking system and use of your logbook
1.4 Hilary term
1.5 Python
1.6 Typographical conventions
2. Learning to use the system
2.1 Logging in and getting started
2.2 Terminal and the Unix command-line
2.3 Introduction to IDLE and the interpreter
2.4 Introduction to Python
2.5 The editor
2.6 Modules and a more interesting program
2.7 Logging out
3. The elements of Python
3.1 Variables
3.1.1 Names and assignment
3.1.2 Types
3.1.3 Case sensitivity
3.2 Input and output
3.3 Arithmetic
3.4 for loops
3.4.1 An example of a for loop
3.4.2 Using the range function
3.5 if statements
3.5.1 An example of an if statement
3.5.2 Comparison tests and Booleans
3.5.3 else and elif statements
3.6 while loops
3.7 Formatted output
3.8 Using library functions
3.9 Arrays
3.9.1 Array basics
3.9.2 More on arrays
3.10 Making your own functions
3.11 File input and output
3.11.1 Reading from a file
3.11.2 Writing to a file
3.12 Putting it all together
4. Graphical output
4.1 Simple graphs
4.2 Less simple graphs
4.3 Saving graphs
A. Errors
A.1 Attribute Errors, Key Errors, Index Errors
A.2 Name Errors
A.3 Syntax Errors
A.4 Type Errors
B. Reserved Words
C. Installing Python on your own PC
C.1 Python
C.2 Gnuplot
About this document ...
Handbook of the Physics Computing Course (Python language)
Next:
Contents
Documentation released on 2002-2003.