→Introduction: stub/outline |
|||
| Line 29: | Line 29: | ||
===Programming basics=== | ===Programming basics=== | ||
'''Inherently multi-session.''' | |||
To be written. Outline: | |||
* Basic input/output, variables, and basic arithmetic. | |||
* Types in Python: int, float, long, string. What to do when types matter (typecasting between primitives). | |||
* Boolean expressions; the boolean type. Control flow: if/elif/else, while loops. | |||
* Sequence types: list, tuple. Control flow: for loops (pythonic sequence iteration). | |||
* Mapping types: dict. Iterating over dictionaries properly. | |||
* Function definitions, the def statement, using function arguments, calling custom functions, specifying values of named arguments. | |||
* Class definitions, the object-oriented model, the meaning of 'self'. | |||
* File input and output. Parsing command-line arguments. String formatting. | |||
* Regular expressions, basic text processing. | |||
* Additional topics TBD. | |||
* Putting it all together: project TBD. | |||
===Programming methods=== | ===Programming methods=== | ||