Python Tutorial
Learn core Python with short explanations and copy-paste examples—organized like a classic tutorial site.
Python is a popular programming language. It is used for web development, automation, data work, scripting, and much more. This documentation covers the core language: syntax, types, collections, control flow, functions, classes, modules, errors, and files.
Tutorial sections
Intro & Syntax
Variables & Types
Collections
Control Flow
Functions
Classes & OOP
Modules & Stdlib
File Handling
Exam Problems
Playground
Language Reference
Hello, World!
Example
print("Hello, World!")
Open any topic from the left sidebar. Use Previous / Next at the bottom of each page to follow the syllabus in order.