Skip to content · ⁨Passer au contenu⁩

Ask for a name · ⁨Demander un nom⁩

English

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.

Français

Demander un nom

Lisez un nom avec input() et imprimez "Hello, " puis le nom. Pour l'entrée Mia, imprimez "Hello, Mia".

input() attend une ligne et la retourne comme texte. Stockez-la dans une variable d'abord, puis utilisez cette variable.

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP