Skip to content · ⁨Passer au contenu⁩

Ask for a name · ⁨Demander un nom⁩

English

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.

Français

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.

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

IGCSE, A-Level & AP