Echo a number
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
This one builds on a lesson you haven't finished yet. Do that lesson first:
Python Basics · Getting input →
Echo a number
Read a line with input() and print the same thing back.
When you press Run, type a number in the highlighted box and press Enter. Check answer types 42 for you.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Read a line with input() and print it back. For 42, show 42.
Click Run to see the output here.