Ask for a name · Demander un nom
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.
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.
Read a name with input() and print "Hello, " then the name. For the input Mia, print "Hello, Mia". · Lisez un nom avec input() et imprimez "Hello, " puis le nom. Pour l'entrée Mia, imprimez "Hello, Mia".
Click Run to see the output here. · Cliquez sur Exécuter pour voir le résultat ici.