Web
HTML
CSS
JavaScript
TypeScript
Frontend
React
Next.js
AngularJS
Backend
Node.js
Python
Java
PHP
C
C++
Rust
Databases
SQL
MySQL
PostgreSQL
MongoDB
Tools
Git
DSA
HTML
CSS
JavaScript
SQL
Python
Java
PHP
React
Nextjs
MySQL
PostgreSQL
MongoDB
C
Cpp
Rust
Git
TypeScript
NodeJS
AngularJS
DSA
Python
Overview
Learn Python
This is a starter landing page for Python. Replace this paragraph with a short, friendly description of the topic and what readers will learn from the tutorial series.
Tutorial contents
Python Introduction
History of Python
Why Learn Python?
Installing Python
Setting Up Your Environment
Your First Program
Running Python Code
The Python REPL
Python Syntax & Indentation
Comments & Docstrings
Variables
Data Types Overview
Numbers (int, float, complex)
Strings
String Methods
String Formatting (f-strings)
Booleans
Type Conversion & Casting
Constants
The None Type
Operators Overview
Arithmetic Operators
Comparison Operators
Logical Operators
Assignment Operators
Bitwise Operators
Identity & Membership Operators
Operator Precedence
Lists
List Methods
Tuples
Sets
Dictionaries
Dictionary Methods
List Comprehensions
Dict & Set Comprehensions
Slicing
Nested Data Structures
Arrays (array module)
if / elif / else
Structural Pattern Matching (match)
for Loops
while Loops
break, continue & pass
The range() Function
enumerate() & zip()
Defining Functions
Function Arguments
*args & **kwargs
Default & Keyword Arguments
Return Values
Variable Scope (LEGB)
Lambda Functions
Closures
Decorators
Recursion
Type Hints & Annotations
Modules
The Import System
Packages
pip — Package Installer
Virtual Environments
Dependency Management (poetry, pipenv)
The Standard Library
Introduction to OOP
Classes & Objects
Constructors (__init__)
Instance vs Class Variables
Methods (instance, class, static)
Inheritance
Polymorphism
Encapsulation
Dunder / Magic Methods
Properties & Getters/Setters
Dataclasses
Abstract Base Classes
Mixins & Multiple Inheritance
Iterators
Generators
Generator Expressions
Context Managers (with)
Exceptions
try / except / finally
Raising Exceptions
Custom Exceptions
Logging
Debugging (pdb)
File Handling
Reading & Writing Files
File Paths (pathlib)
Working with JSON
Working with CSV
Regular Expressions (re)
Dates & Times (datetime)
math & random Modules
collections Module
itertools
functools
map, filter & reduce
Higher-Order Functions
Partial Functions
Threading
Multiprocessing
Async I/O (asyncio)
async / await
The Global Interpreter Lock (GIL)
Unit Testing (unittest)
Testing with pytest
Mocking
Linting & Formatting (black, ruff)
Static Type Checking (mypy)
HTTP Requests (requests)
Working with APIs
Web Scraping
Databases with SQLite
Environment Variables
Building CLI Apps (argparse)
Intro to NumPy
Intro to Pandas
Intro to Flask
Intro to Django
Packaging & Distribution
PEP 8 Style Guide
Project Structure
Performance Optimization
Best Practices
Common Mistakes
Python Cheat Sheet
Glossary
Interview Questions