Run your own code
The browser runs the code currently in the editor.
Guided Python practice across all syllabus units
Practice · across the Python syllabus
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.
practice problems
syllabus units
data variations per task
15 matching challenges · selected: Unit 1 · Input and output · input() and print()
Unit 1 · Input and output · input() and print()
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
Each input() call has a matching prompt. Save each response in its own variable, then print every field.
name = input("Name: ")
contact = input("Contact: ")
email = input("Email: ")
birth_date = input("Birth date: ")
print("Name:", name)Output
Your program's output will appear here.
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.
The browser runs the code currently in the editor.
A lightweight checker looks for required output, allowing different code styles.
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.