Ask for a name
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 →
Ask for a name
Read a name with input() and print "Hello, " then the name. For the input Mia, print "Hello, Mia".
input() waits for one line and hands it back as text. Store it in a variable first, then use that variable.
Read a name with input() and print "Hello, " then the name. For the input Mia, print "Hello, Mia".
Click Run to see the output here.