Python
Python Tutorial
Learn Python from scratch: syntax, variables, data types, strings and lists, with runnable examples.
Start learning
70 lessons
Lessons
- Python Introduction: What Python Is and Why Learn It
- Python Get Started: Install Python, Run Your First Program
- Python Syntax: Indentation, Statements, Quotes and Keywords
- Python Comments: Single-Line, Multi-Line and Docstrings
- Python Variables: Create, Name and Change Them
- Python Data Types: int, float, str, bool, list and dict
- Python Numbers: int, float, Rounding and the math Module
- Python Strings: Slicing, Methods and f-Strings
- Python Lists: Create, Index, Slice and Change Lists
- Python List Methods: append, sort, pop and More
- Python if, elif and else Statements (With Examples)
- Python for Loop: range, enumerate, zip and break
- Python while Loop: break, continue and while-else
- Python Functions: def, Arguments, return and lambda
- Python Dictionaries: Create, Access, Update and Loop
- Python Tuples: Create, Unpack and Tuple vs List
- Python Sets: Union, Intersection and Set Methods
- Python Exception Handling: try, except, else, finally
- Python File Handling: Read, Write and Append Files
- Python Modules: import, Standard Library and pip
- Python Classes and Objects: __init__, self and Methods
- Python Inheritance: super(), Overriding and MRO
- Python Polymorphism and Encapsulation (OOP)
- Python String Formatting: f-Strings, format() and %
- Python List Comprehension: Syntax and Examples
- Python Iterators and Generators: iter, next, yield
- Python Decorators Explained With Examples
- Python Regex: re.search, findall, sub and Groups
- Python datetime: Dates, Times, Formatting and Time Zones
- Python Virtual Environment (venv) and pip Guide
- Python Lambda Functions, map, filter and Sorting with key
- Python *args and **kwargs (Function Arguments Explained)
- Python Recursion: Base Case, Call Stack and Memoization
- Python JSON: dumps, loads, dump and load with Examples
- Python collections Module: Counter, defaultdict, deque, namedtuple
- Python math, random and statistics Modules
- Python Type Hints: Annotations, Optional, TypedDict and mypy
- Python Dataclasses: @dataclass, field, frozen and order
- Python Context Managers: with, __enter__, __exit__ and contextlib
- Python Unit Testing with unittest and pytest
- Python match-case Statement (Pattern Matching)
- Python Built-in Functions: enumerate, zip, sorted and More
- Python itertools Module with Examples
- Python CSV Files: Read and Write with the csv Module
- Python pathlib: Working with Files and Folders
- Python Mutable vs Immutable, Shallow and Deep Copy
- Python Abstract Classes with abc and Protocol
- Python Magic (Dunder) Methods with Examples
- Python Logging Tutorial: Levels, Handlers and Formatters
- Python argparse: Command-Line Arguments Tutorial
- Python Scope, global, nonlocal and Closures
- Python functools Module: lru_cache, partial, wraps and More
- Python Enum: Enum, StrEnum, IntEnum and Flag
- Python SQLite3 Database Tutorial With Examples
- Python Threading and concurrent.futures
- Python asyncio: async, await, gather and TaskGroup
- Python heapq and bisect Modules: Priority Queues and Sorted Lists
- Python @property, Setters and __slots__
- Python Decimal and Fractions: Exact Money and Ratios
- Python Project: Command-Line Expense Tracker
- Python Sorting: sorted(), sort() and key Functions
- Python Unpacking and Star Expressions
- Python Protocols and Duck Typing
- Python Multiprocessing With ProcessPoolExecutor
- Python subprocess: Running Other Programs
- Python Bytes, Unicode and Encoding
- Python hashlib and secrets: Hashing, Passwords and Tokens
- Python pickle and shelve: Saving Python Objects
- Python timeit and cProfile: Measuring Speed
- Python Project: Student Result System
