Learn Python with uByte
Learn Python programming for free with uByte. Interactive Python tutorials for beginners — write and run real Python code in your browser.
All Tutorials
Getting Started with Python
Install Python, set up your editor, and write your first Hello World program.
Variables & Data Types
Learn how to assign variables, understand Python's types, and work with strings, numbers, booleans, and constants.
Print & Formatting
Use print(), f-strings, and format() to output text and numbers in Python.
Control Flow
Conditionals (if/elif/else) and boolean logic in Python.
Loops
for and while loops in Python.
Lists & Slices
Lists, slicing, and list methods in Python.
Dictionaries
Dictionaries (key-value maps) in Python.
Functions
Defining and calling functions in Python.
References
How Python passes references and mutability.
Classes & Dataclasses
Classes and dataclasses in Python.
Methods
Instance methods and self in Python.
Protocols & ABCs
Duck typing, protocols, and abstract base classes in Python.
Exceptions
try/except and raising exceptions in Python.
Modules
Importing modules and organizing code in Python.
Async & Threading
asyncio and threading in Python.
Testing in Python
unittest and pytest basics.
HTTP in Python
requests and urllib for HTTP in Python.
JSON in Python
json module for encoding and decoding.
asyncio Select
asyncio and select for concurrent I/O.