PYTHON / 18 LESSONS
Python: from your first program to practical automation
Build your skills in order, from variables and loops to reusable programs, files, object oriented programming, libraries, and a final results-reporting project.
How to use this course
Work through each lesson in order. Read the explanation, predict each example's output, run the code in your own Python environment, and complete the exercises before moving on. Code blocks preserve the examples and indentation from the supplied tutorial.
The complete Python course
Course orientation
Understand what a program does, follow the edit and run cycle, and distinguish source code from output. The cover describes a beginner to advanced path. Treat this as a progression: basic syntax first, data structures next, then reusable programs and automation.
Read lesson →LESSON 02Introduction to Python
Run a script, explain Python's main strengths, and distinguish an interactive interpreter from a saved program.
Read lesson →LESSON 03Variables and data types
Create meaningful names, choose basic types, convert numeric text, and understand mutable values.
Read lesson →LESSON 04Input output and operators
Read user input, format output, and use arithmetic, comparison, logical, membership, and identity operators correctly.
Read lesson →LESSON 05Decision making
Select branches using if, elif, else, nested conditions, and match.
Read lesson →LESSON 06Loops and a functions bridge
Repeat work with for and while, control a loop, and package repeated logic in a function.
Read lesson →LESSON 07Strings
Index, slice, normalize, search, and format text without confusing mutation with replacement.
Read lesson →LESSON 08Collections
Choose between lists, tuples, sets, and dictionaries and use their methods appropriately.
Read lesson →LESSON 09Comprehensions and lambda
Transform and filter collections concisely and understand small anonymous functions and lazy map and filter results.
Read lesson →LESSON 10Modules and packages
Split a program into files, import reusable code, and isolate installed dependencies.
Read lesson →LESSON 11File handling
Read and write text, append safely in a practice folder, and exchange structured CSV and JSON data.
Read lesson →LESSON 12Exception handling
Handle expected failures, raise clear validation errors, and read tracebacks.
Read lesson →LESSON 13Object oriented programming
Create classes and instances, initialize state, and use inheritance, polymorphism, encapsulation, and abstraction.
Read lesson →LESSON 14Advanced Python
Recognize iterators, write a generator and decorator, use a context manager, and measure before optimizing.
Read lesson →LESSON 15Python libraries
Choose standard library tools or third party packages for a task and recognize their installation and runtime requirements.
Read lesson →LESSON 16Real world automation
Combine paths, CSV, logs, backups, and API calls into predictable automation with visible results.
Read lesson →LESSON 17Best practices
Write maintainable functions, avoid shared defaults, organize projects, and verify important behavior.
Read lesson →LESSON 18Revision and interview practice
Connect the course topics, explain key language behavior, and build a complete small program.
Read lesson →Further reading
Python tutorial and language details: https://docs.python.org/3/tutorial/
Python standard library reference: https://docs.python.org/3/library/
PEP 8 style guide: https://peps.python.org/pep-0008/
Requests usage and error handling: https://requests.readthedocs.io/en/latest/user/quickstart/
NumPy documentation: https://numpy.org/doc/
pandas documentation: https://pandas.pydata.org/docs/
Matplotlib documentation: https://matplotlib.org/stable/