All tutorials
Python tutorials
Master Python from basics to advanced — data types, loops, functions, OOP, and real-world projects.
- Chapters
- 16
- Total reading
- 4h 29m
- Level
- Beginner to Advanced
Chapters
- Chapter 111 min readStart
Python Fundamentals
Learn the basics of Python — installation, variables, data types, input/output, comments, and your first programs. - Chapter 214 min readStart
Python Operators
Master arithmetic, comparison, logical, assignment, bitwise, membership, and identity operators with practical examples. - Chapter 318 min readStart
Python Data Types
Deep dive into Python's data types — integers, floats, strings, booleans, None, type conversion, and how they work in memory. - Chapter 422 min readStart
Python Lists
Master Python lists — creation, indexing, slicing, methods, iteration, comprehensions, nested lists, and common patterns. - Chapter 520 min readStart
Python Strings
Complete guide to Python strings — creation, indexing, slicing, methods, formatting, regex basics and real-world use cases. - Chapter 616 min readStart
Tuples & Sets
Understand immutable tuples and unique-element sets — creation, operations, methods, use cases, and when to use which. - Chapter 718 min readStart
Python Dictionaries
Master Python dictionaries — creation, access patterns, CRUD operations, iteration, comprehensions, nested dicts, and common idioms. - Chapter 814 min readStart
Conditional Statements
Control program flow with if, elif, else, ternary expressions, match-case, guard clauses, and clean conditionals. - Chapter 916 min readStart
Python Loops
Master for loops, while loops, range(), enumerate(), zip(), break, continue, nested loops, and efficient iteration patterns. - Chapter 1018 min readStart
Python Functions
Define and call functions, pass arguments, set defaults, use *args/**kwargs, write lambdas, and structure clean reusable code. - Chapter 1116 min readStart
Python File Handling
Read and write text files, CSVs, and JSON in Python — with safe context managers, common modes, and Pathlib best practices. - Chapter 1215 min readStart
Python Exception Handling
Handle errors gracefully with try/except/else/finally, raise exceptions, define custom exception classes, and write robust Python. - Chapter 1320 min readStart
Object-Oriented Programming
Model your problem with classes and objects — attributes, methods, __init__, inheritance, encapsulation and the dunder methods. - Chapter 1418 min readStart
Iterators, Generators & Comprehensions
How Python loops under the hood — the iterator protocol, memory-efficient generators with yield, and expressive comprehensions. - Chapter 1517 min readStart
Decorators & Closures
Functions as first-class values, closures that capture state, and decorators that wrap behaviour — the magic behind @ syntax. - Chapter 1616 min readStart
Modules, Packages & Virtual Environments
Organise code across files, import it cleanly, install third-party libraries with pip, and isolate projects with virtual environments.
