Skip to content

Ask for a name

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.

Log in or create account

IGCSE, A-Level & AP