Ask for a name · Demander un nom
Ask for a name
input() reads one line that the user types. Store it in a box, then use it.
When you press Run, the program waits: a highlighted box appears under the code. Type a name there and press Enter. Check answer types Sam for you.
Demander un nom
input() lit une ligne tapée par l'utilisateur. Stockez-la dans une boîte, puis utilisez-la.
Lorsque vous appuyez sur Exécuter, le programme attend : une boîte surlignée apparaît sous le code. Tapez un nom dedans et appuyez sur Entrée. Vérifier la réponse tape Sam pour vous.
Read a name with input(). Then show Hi, + the name + !. For Sam, show Hi, Sam!. · Lisez un nom avec input(). Puis affichez Hi, + le nom + !. Pour Sam, affichez Hi, Sam !.
Click Run to see the output here. · Cliquez sur Exécuter pour voir le résultat ici.