Ask for two things · Demandez deux choses
Ask for two things
Read a colour, then an animal. Print them on one line with a space between: for red and fox, print "red fox".
Each input() reads ONE line, so two things need two calls — and each needs its own variable, or the second overwrites the first.
Demander deux choses
Lisez une couleur, puis un animal. Imprimez-les sur une ligne avec un espace entre : pour red et fox, imprimez "red fox".
Chaque input() lit UNE ligne, donc deux choses nécessitent deux appels — et chacune a besoin de sa propre variable, sinon la seconde écrase la première.
Read a colour, then an animal. Print them on one line with a space between: for red and fox, print "red fox". · Lisez une couleur, puis un animal. Imprimez-les sur une ligne avec un espace entre : pour red et fox, imprimez "red fox".
Click Run to see the output here. · Cliquez sur Exécuter pour voir le résultat ici.