Practice · All units

Practice Problems

Guided Python practice across all syllabus units

Practice · across the Python syllabus

Write a solution. Run it. Check what it does.

Practise each unit with runnable code. The checker compares your program’s printed result with required output patterns, so different correct approaches can pass; it does not compare your source code character by character. All Python executes locally in the browser through Pyodide.

15

practice problems

5

syllabus units

2+

data variations per task

Choose a problem

15 matching challenges · selected: Unit 1 · Input and output · input() and print()

Unit 1 · Input and output · input() and print()

Collect a learner profile

The starter asks for a learner's name, contact, email, and birth date. Print all four values with clear labels. The runner will ask for sample answers in a dialog.

Use these sample responses in the input dialog, in order: Mira · 9876543210 · mira@example.com · 2008-04-12

Need a hint?

Each input() call has a matching prompt. Save each response in its own variable, then print every field.

Solve and run
Starting up Python…
name = input("Name: ")
contact = input("Contact: ")
email = input("Email: ")
birth_date = input("Birth date: ")
print("Name:", name)
The editor is ready while Python loads in the background.

Output

Your program's output will appear here.
Common Python mistakes

NameError: name 'mark' is not defined

NameError: A name was used before Python could find a variable or function with that name.

IndexError: list index out of range

IndexError: The requested position is outside the items in this list or sequence.

KeyError: 'email'

KeyError: That key does not exist in this dictionary.

TypeError: can only concatenate str (not "int") to str

TypeError: This operation does not work with the kind of value it received.

ZeroDivisionError: division by zero

ZeroDivisionError: A number cannot be divided by zero.

SyntaxError: invalid syntax

SyntaxError: Python could not understand the structure of this line. Check spelling, brackets, colons, and quotes.

IndentationError: expected an indented block

IndentationError: The spaces at the start of a line do not match Python's block structure.

How the checker awards a pass

Run your own code

The browser runs the code currently in the editor.

Compare results

A lightweight checker looks for required output, allowing different code styles.

Use feedback

If a check fails, inspect the output and traceback, then revise and run again.

These are formative practice checks, not a complete examiner. They assess visible output for the selected task; keep your code readable and make sure it follows the stated method as well.