Ask for two things · Solicitar dos cosas
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.
Solicitar dos cosas
Lee un color y luego un animal. Imprime ambos en una sola línea separados por un espacio: para "red" y "fox", imprime "red fox".
Cada input() lee UNA línea, por lo que se necesitan dos llamadas —y cada una requiere su propia variable, de lo contrario la segunda sobrescribirá a la primera.
Read a colour, then an animal. Print them on one line with a space between: for red and fox, print "red fox". · Lee un color y luego un animal. Imprime ambos en una sola línea con un espacio entre ellos: para red y fox, imprime "red fox".
Click Run to see the output here. · Haz clic en Ejecutar para ver la salida aquí.