Installing Python
| Installing, using Idle, a first program |
Variables |
print, variables, comments, strings , constants, + - * / ** += |
Input/Output |
print, input, raw_input |
if |
Comparison operators >= != etc, boolean (True/False), if/elif/else, and/or/not |
while |
while, menu example |
Functions - def |
def, global/local, testing interactively, menus example |
Scopes (local/global) |
|
Function parameters |
box-drawing example, built-in functions, return |
Lists (arrays) |
for loops, input validation example, exam marks example, operations (del, append etc) , references |
Dictionaries | Language translation example |
Tuples | tuples, lists |
Files | open, close, read, readline,
write. List I/O example |
Libraries |
sin, cos etc. random, string conversion |
Hints, tips |
to do... |
spare | ... |
spare | ... |
Here are some intro Python notes. Not the complete stuff, just summaries/examples of topics. They are aimed at people who will move on from Python, in
the sense that some ideas are presented in a way that fits with other languages (even though
they could possibly be presented in a more concise way in Python)
| |
|