Learn Python
Explore our interactive guides and master Python programming directly from your browser. Every lesson includes runnable code you can try instantly.
Python Loops
Learn how to use Python loops to iterate over data. Master for loops, while loops, break, continue, and loop best practices with interactive examples.
Python Functions
Master Python functions. Learn how to write reusable code using def, define arguments, return values, and understand scope locally and globally.
Python Variables & Data Types Explained
Understand Python variables and core data types (strings, integers, floats, booleans). A complete beginner guide to memory assignment in Python.
Python If-Else Conditions and Logic
Learn conditional statements in Python. Discover how to use if, elif, and else to control code flow and make decisions in your applications.
Python Classes and Object-Oriented Programming
A complete introduction to Python classes, objects, inheritance, and OOP concepts. Create robust data models and scale your python applications.
Python Lists
Learn everything about Python lists. Discover how to create, slice, modify, and iterate through arrays in Python natively.
Python Dictionaries
Master Python Dictionaries. Learn to store, fetch, and handle key-value pair data. Understand performance and best practices for mappings.
Python Try/Except & Error Handling
Prevent your Python scripts from crashing. Learn try, except, finally blocks and how to raise custom exceptions properly.
Python Strings
Master string manipulation in Python. Learn string methods, slicing, concatenation, and formatting techniques with clear, executable code examples.
Python File I/O
Learn how to read and write files in Python. Master open(), read(), write(), and context managers to handle file operations securely without resource leaks.
Python Modules and Packages
Understand Python modules and packages. Learn how to import files, structure large projects, utilize the standard library, and use absolute vs relative imports.
Python Comprehensions
Write cleaner, faster Python. Master list, dictionary, and set comprehensions with practical examples, filtering conditions, and nested loops.
Python Generators
Learn how to use Python generators and yield statements to process huge datasets with minimal memory footprints. Master generator expressions.
Python Decorators
Learn Python decorators to modify function behavior dynamically. Understand wrapper functions, @ syntax, and handling arguments in decorators.
Python Regex
Master Regular Expressions (Regex) in Python. Learn to search, match, split, and substitute string data using the built-in re library.
Python Lambda Functions
Learn how to write anonymous lambda functions in Python. Master functional programming patterns using map(), filter(), and sorted() with lambda syntax.
Python Sets
Master sets in Python. Learn to store unique values, execute intersections, unions, differences, and understand the performance benefits of hashing.
Python Tuples
Understand Python tuples. Learn when to use tuples over lists, how tuple unpacking works, and how immutability guarantees data safety.
Python Math Module
Discover the power of Python's built-in math module. Learn about trigonometric functions, logarithms, rounding methods, and constants.
Python Datetime
Learn how to handle dates, times, timezones, and calculations in Python. Master formatting, parsing, and arithmetic using datetime and timedelta.
Python JSON Parsing
Learn how to read, write, and parse JSON data in Python. Master json.loads, json.dumps, and customizing JSON encoders/decoders.
Python CSV
Learn how to handle CSV data in Python. Master csv.reader, csv.writer, and DictReader/DictWriter for efficient table parsing.
Python Type Hints
Learn how to write type hints in Python. Improve code quality, enable autocompletion, and leverage mypy for static code analysis.
Python Virtual Environments
Master Python virtual environments. Learn how to create, activate, and manage dependencies with venv and pip safely.
Python OOP Inheritance
Learn inheritance in Python OOP. Master subclassing, overriding methods, using super(), and multiple inheritance patterns.
Python OOP Polymorphism
Master polymorphism in Python. Learn how to write flexible, loosely coupled code using duck typing, method overriding, and abstract base classes.
Python Context Managers
Learn how to write custom context managers in Python. Master the contextmanager decorator and __enter__/__exit__ methods for resource safety.
Python Itertools
Learn Python's itertools module. Master infinite iterators, combinations, permutations, grouping, and memory-efficient data processing.
Python Collections Module
Learn to use Python's collections module. Master Counter, defaultdict, namedtuple, deque, and how to simplify complex data structures.
Python F-Strings
Learn how to format strings in Python using F-strings. Master expression evaluation, float precision formatting, datetime printing, and self-documenting syntax.