Skip to content

Ask for two things

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.

Log in or create account

IGCSE, A-Level & AP