Lecture Notes on 18 / 20 Jan 2017 Structure of Python * Write and run the Hello World program * Characterset * Variables * Types: int, float, str, bool * Assignment Statement x = 2 * Operators - Arithmetic: - Comparison: - Boolean: not, and, or - Bitwise - Shift * Conditionals: if-else * Loops: while, for * Functions * Simple Input / Output * Lists: 1-D and 2-D * Tuple - is a list that cannot be changed - immutable * Set - is an unordered list of unique elements * Dictionary - a set of key-value pairs