Skip to content · ⁨Saltar al contenido⁩

Ask for two things · ⁨Solicitar dos cosas⁩

English

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.

Español

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.

Log in or create account · ⁨Iniciar sesión o crear cuenta⁩

IGCSE, A-Level & AP