20 modules ยท 306 tutorials
Python Programming tutorials
The most readable way into programming: from your first print() to OOP, files, exceptions, generators, decorators, APIs and databases.
Module 01
Introduction to Python
What Python is, where it came from, where it is used, and how to install it, set up VS Code and run your first programs.
- What is Python? 12m
- History of Python 12m
- Why Python is popular 10m
- Features of Python 14m
- Applications of Python 12m
- Python in real-world development 14m
- Python compared with other languages 14m
- Installing Python 15m
- Setting up VS Code 15m
- Installing Python extensions 12m
- Writing your first Python program 15m
- Understanding the Python interpreter 14m
- Source code and execution 15m
- Interactive mode versus script mode 12m
Module 02
Python Syntax and Fundamentals
The grammar of Python: indentation, statements and expressions, comments and docstrings, keywords and names, input and output, type conversion and reading syntax errors.
Module 03
Variables and Data Types
How Python stores and names values: variables and assignment, dynamic typing, numbers, strings, Booleans, None, type checking and conversion, mutability and a first look at scope.
Module 04
Operators
Every Python operator in depth: arithmetic, comparison, logical, assignment, bitwise, membership and identity operators, then how precedence and associativity decide the order of evaluation.
- Arithmetic operators 12m
- Addition 10m
- Subtraction 10m
- Multiplication 10m
- Division 12m
- Floor division 10m
- Modulus 12m
- Exponentiation 10m
- Comparison operators 12m
- Logical operators 14m
- Assignment operators 10m
- Bitwise operators 14m
- Membership operators 10m
- Identity operators 10m
- Operator precedence 12m
- Associativity 10m
Module 05
Conditional Statements
How programs make decisions: if, if-else and if-elif-else, nested and combined conditions, conditional expressions, truthiness and the mistakes beginners make most often.
Module 06
Loops and Iteration
Repeating work with while and for loops: range(), how loops execute, nested loops, break, continue, pass, avoiding infinite loops, loop else clauses and the basics of iteration.
Module 07
Strings
Working with text in depth: creating strings, indexing and slicing, joining and repeating, immutability, the essential string methods, formatting with format() and f-strings, escapes and multi-line text.
- Creating strings 10m
- Indexing 10m
- Negative indexing 8m
- Slicing 12m
- Concatenation 10m
- Repetition 8m
- Immutability 10m
- String methods 12m
- upper() 8m
- lower() 8m
- strip() 10m
- replace() 10m
- split() 12m
- join() 10m
- find() 10m
- count() 8m
- startswith() 8m
- endswith() 8m
- String formatting 12m
- f-strings 12m
- Escape characters 10m
- Multiline strings 10m
Module 08
Python Data Structures
Lists, tuples, sets and dictionaries in depth: creating, indexing, slicing, updating and nesting them, set algebra, dictionary methods, and how to choose the right structure for a problem.
- Data structure introduction 12m
- Lists 12m
- List creation 10m
- Indexing 10m
- Slicing 12m
- List methods 12m
- Adding and removing elements 12m
- Updating elements 10m
- Nested lists 12m
- Tuples 10m
- Tuple operations 10m
- Sets 10m
- Set operations 12m
- Union 8m
- Intersection 8m
- Difference 8m
- Dictionaries 12m
- Dictionary keys and values 10m
- Updating dictionaries 12m
- Dictionary methods 10m
- Nested dictionaries 12m
- Choosing appropriate data structures 14m
Module 09
Functions
Defining and calling functions, parameters and every kind of argument (positional, keyword, default, *args, **kwargs), return values, scope, lambdas, recursion, docstrings and good function design.
- Functions 10m
- Function definition 10m
- Function calls 10m
- Parameters 10m
- Arguments 10m
- Positional arguments 8m
- Keyword arguments 8m
- Default arguments 10m
- *args 8m
- **kwargs 8m
- Return statements 8m
- Multiple return values 8m
- Local variables 8m
- Global variables 8m
- Scope 12m
- Lambda functions 8m
- Recursion 15m
- Docstrings 8m
- Function best practices 12m
Module 10
Comprehensions and Advanced Iteration
List, dictionary and set comprehensions (with conditions and nesting), generator expressions, iterables and iterators, iter() and next(), generator functions with yield, and lazy evaluation.
Module 11
Object-Oriented Programming
Classes and objects, attributes and methods, constructors and self, instance and class variables, class and static methods, encapsulation, every form of inheritance, overriding, polymorphism, abstraction, abstract classes, properties, special methods and composition.
- Introduction to OOP 10m
- Classes 10m
- Objects 10m
- Attributes 10m
- Methods 10m
- Constructors 10m
- __init__() 10m
- self 8m
- Instance variables 8m
- Class variables 8m
- Instance methods 8m
- Class methods 10m
- Static methods 8m
- Encapsulation 10m
- Inheritance 12m
- Single inheritance 8m
- Multiple inheritance 12m
- Multilevel inheritance 8m
- Method overriding 10m
- Polymorphism 10m
- Abstraction 8m
- Abstract classes 10m
- Properties 10m
- Special methods 12m
- Composition 10m
Module 12
Exception Handling
What exceptions are, syntax versus runtime errors, the common built-in exceptions, try/except/else/finally, handling several exceptions and exception groups, raising and chaining exceptions, custom exception hierarchies and best practices.
Module 13
File Handling
Opening, reading, writing and appending files, file modes, closing and with statements, text, CSV and JSON files, paths, directories, pathlib and the exceptions file operations raise.
Module 14
Python Modules and Packages
Modules and how import works, creating your own modules, from-imports and aliases, a tour of the standard library, packages and __init__.py, installing packages with pip, virtual environments, requirements.txt and organising real projects.
Module 15
Python Standard Libraries
A practical tour of the most useful standard modules: math, random, datetime, time, os, sys, pathlib, json, csv, collections, itertools, statistics and re.
Module 16
External Libraries and APIs
Choosing and installing third-party libraries, dependencies and virtual environments in practice, first steps with NumPy, pandas, Matplotlib and requests, and calling web APIs: HTTP requests, JSON responses and working with external data.
Module 17
Advanced Python Concepts
Mutability, references, shallow and deep copies, memory management and garbage collection, first-class functions, closures, decorators, context managers, type hints, annotations, dataclasses and enums.
Module 18
Algorithms and Problem Solving
What algorithms are, a problem-solving method, flowcharts and pseudocode, time and space complexity, Big-O notation, linear and binary search, bubble, selection and insertion sort, recursion problems, stacks, queues, frequency counting, two pointers and common problem-solving patterns.
- Algorithms 8m
- Problem-solving methodology 10m
- Flowcharts 8m
- Pseudocode 8m
- Time complexity 10m
- Space complexity 8m
- Big-O notation 10m
- Linear search 8m
- Binary search 10m
- Bubble sort 8m
- Selection sort 8m
- Insertion sort 10m
- Recursion problems 12m
- Stacks 10m
- Queues 10m
- Frequency counting 10m
- Two-pointer techniques 10m
- Common problem-solving patterns 12m
Module 19
Debugging, Testing and Best Practices
Debugging methodically, kinds of programming errors, reading tracebacks, the VS Code debugger and print/logging debugging, assertions, unit testing with unittest and pytest, designing test cases, PEP 8, readability, naming, documentation, code organisation and maintainable programs.
Module 20
Building Real Python Applications
Planning an application, breaking it into components, structuring the program, functions and classes in application design, input validation, application-level exception handling, data persistence and JSON storage, testing and debugging applications, improving code quality and preparing projects for demonstration.
- Application planning 10m
- Breaking problems into components 10m
- Program structure 10m
- Functions and modularity 10m
- Classes and application design 12m
- Input validation 10m
- Exception handling 10m
- Data persistence 10m
- JSON storage 10m
- Application testing 12m
- Debugging applications 10m
- Improving code quality 10m
- Preparing projects for demonstration 10m