Skip to content

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

1

Getting Started with Python

Install Python, set up your editor, and write your first Hello World program.

beginner10 min
2

Variables & Data Types

Learn how to assign variables, understand Python's types, and work with strings, numbers, booleans, and constants.

beginner12 min
3

Print & Formatting

Use print(), f-strings, and format() to output text and numbers in Python.

beginner10 min
4

Control Flow

Conditionals (if/elif/else) and boolean logic in Python.

beginner15 min
5

Loops

for and while loops in Python.

beginner12 min
6

Lists & Slices

Lists, slicing, and list methods in Python.

intermediate15 min
7

Dictionaries

Dictionaries (key-value maps) in Python.

intermediate12 min
8

Functions

Defining and calling functions in Python.

intermediate15 min
9

References

How Python passes references and mutability.

intermediate15 min
10

Classes & Dataclasses

Classes and dataclasses in Python.

intermediate15 min
11

Methods

Instance methods and self in Python.

intermediate12 min
12

Protocols & ABCs

Duck typing, protocols, and abstract base classes in Python.

intermediate20 min
13

Exceptions

try/except and raising exceptions in Python.

intermediate15 min
14

Modules

Importing modules and organizing code in Python.

intermediate12 min
15

Async & Threading

asyncio and threading in Python.

advanced25 min
16

Testing in Python

unittest and pytest basics.

intermediate18 min
17

HTTP in Python

requests and urllib for HTTP in Python.

intermediate20 min
18

JSON in Python

json module for encoding and decoding.

intermediate15 min
19

asyncio Select

asyncio and select for concurrent I/O.

advanced20 min