← codetypingtest

Python typing test

Python reads almost like English, which makes it a friendly place to start typing code. The work is in the details: every block line ends with a colon, names are written in snake_case with underscores, and nearly every line has brackets, commas or quotes. Indentation matters in Python, but here it's filled in for you after each line break, so you can concentrate on the characters.

Start the Python typing test

What you'll type in Python

Example: FizzBuzz in Python

FizzBuzz in Python is short but full of colons, and it uses elif where most languages write else if. There isn't a single brace or semicolon in it.

for i in range(1, 16):
    if i % 15 == 0:
        print("FizzBuzz")
    elif i % 3 == 0:
        print("Fizz")
    elif i % 5 == 0:
        print("Buzz")
    else:
        print(i)

Type this program now

Tips for typing Python faster

All 20 Python programs

Every program is real, working Python. Choose one to start typing it straight away.

Beginner

Intermediate

Advanced

Expert

How the test works

The timer starts on your first key and stops once every character is right. Press Enter for a new line and the indentation is filled in for you. A wrong key shows in red and counts as a mistake; press Backspace to go back and fix it. Your best time for each program is saved in your browser. Read more about how speed and accuracy are calculated, or get tips for typing code faster.

Other languages