Module 1: Basic Syntax, Variables, Operators, Conditionals and Iterations
Objectives covered by the module
- Basic computer programming basics
- Different data types in Python
- Unary and binary operators in Python
- Statements, assignments and shortcut operators
- Data type casting
- Lists and strings
- Standard input and output
- Arguments used in print() function
- Conditional statements
- Iteration with for-loop and while-loop
- Controlling loop execution: break, continue
Module 2: Python Data Structures
Objectives covered by the module
- Strings: escape character, string functions, immutability, slicing, multi-line strings
- Lists: indexing, slicing, list functions, adding, updating, deleting elements, iteration, list comprehension and multi-dimensional lists
- Tuples: indexing, slicing, immutability
- Dictionaries: building, indexing, adding and removing keys, iterating elements, dictionary methods
- Similarities and differences between lists, tuples and dictionaries
Module 3: Functions and Modules
Objectives covered by the module
- Built-in functions and custom functions
- Python generators
- Invoking functions and generators
- Positional arguments and named arguments
- The return statement
- Lambda function and its usage
- Packages and modules
- Importing modules
- Constructing and distributing packages
- Name scopes, name hiding, the global keyword
- Handling file input and output
- Python comments and documentations
Module 4: Classes, Objects, and Exceptions
Objectives covered by the module
- Introduction to object-oriented programming
- Methods and class variables
- Class inheritance
- Writing classes, superclasses and subclasses
- Class variables and instance variables
- Extending classes with additional methods and variables
- Name mangling and controlling visibility
- Method overriding
- Single inheritance vs. multiple inheritance
- Constructor and the self keywod
- Built in functions to work with classes and objects
- Exception handling in Python
- Predefined exceptions and custom exceptions
- Catching and raising an exception
- The exception hierarchy
- Assertions
* The course covers PCAP Certified Associate in Python Programming exam syllabus.