Py-
CRAFT
Write Python. Understand every error.
Starting Python in your browser…
Choose a topic
Topics
Free practice
Python basics
1
About Python
2
Hello, World! and print()
3
Variables
4
Data types
5
Operators
6
Input and output
7
Strings
8
Conditions: if, elif, else
9
for loops and range()
10
while loops, break and continue
11
Lists
12
Tuples and sets
13
Dictionaries
14
Functions
15
Modules: math and friends
16
Errors and exceptions
NumPy
17
NumPy arrays
18
Creating arrays
19
Indexing and slicing
20
Arithmetic and broadcasting
21
Statistics and aggregation
22
Boolean masks and filtering
23
Reshaping and combining
24
Matrices and linear algebra
Fun with Python
25
Drawing with turtle
Projects
Report card maker
Number guessing game
Shopping bill with GST
Word statistics
Weekly weather with NumPy
Practice and reference
Timed practice
Error guide
Python programs
Cheat sheets
My progress
For teachers
Timed practice
Run
Check my answer
Reset code
Ctrl + Enter to run
Try an example with a mistake…
Line 1, column 1
Tab indents 4 spaces. Press Esc then Tab to leave the editor.
Program input
Each line is one answer to an
input()
call, in order.