Basic Python ============ Module Objectives ----------------- After successfully completing this module a participant will be able to: * Write Python scripts to perform simple string processing or mathematical tasks {Ap} * Read and understand simple procedural Python programs {Ap} +---------+------------------------------+----------+ | Session | Topic | Duration | +---------+------------------------------+----------+ | 1 | Introduction to Python | 5 min | | | | | | | Python Interpreter | 20 min | | | - getting started | | | | - IPython introduction | | | | | | | | Basic Data-types | 25 min | | | - Numbers | | | | - Booleans | | | | - Sequences | | | | | | +---------+------------------------------+----------+ | 2 | Strings | 20 min | | | - Creation | | | | - Operations | | | | - Accessing elements | | | | - immutability | | | | - methods | | | | | | | | Conditionals | 10 min | | | - if, if-else, if-elif-else | | | | - Ternary operator | | | | - pass | | | | | | | | Loops | 10 min | | | - while | | | | - for | | | | | | | | Lists | 20 min | | | - Creation | | | | - Operations | | | | - Accessing elements | | | | - adding & removing | | | | - sorting | | +---------+------------------------------+----------+ | 3 | I/O | 10 min | | | - print x & print x, | | | | - string formatting | | | | - raw_input | | | | | | | | Files | 20 min | | | - opening | | | | - reading | | | | - tokenization | | | | | | | | Functions | 30 min | | | - definition | | | | - doc-strings | | | | - code reading | | | | - default arguments | | | | - keyword arguments | | | | - variable scope | | +---------+------------------------------+----------+ | 4 | Tuples | 10 min | | | - packing, unpacking | | | | - swapping | | | | | | | | Dictionaries | 15 min | | | - creating | | | | - Accessing elements | | | | - Adding & removing elements | | | | - containership | | | | - keys and values | | | | | | | | Sets | 10 min | | | - creating | | | | - operations | | +---------+------------------------------+----------+