Skip to content · ⁨본문 바로가기⁩

Ask for two things · ⁨두 가지 질문하기⁩

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.

한국어

두 가지 요청하기

색상을 입력받고, 그다음 동물을 입력합니다. 빈칸을 사이에 두고 한 줄에 출력합니다: red와 fox의 경우 "red fox"를 출력합니다.

각 input()는 ONE 줄을 읽으므로, 두 가지를 얻으려면 두 번 호출해야 하며, 각각 별도의 변수가 필요합니다. 그렇지 않으면 두 번째 입력이 첫 번째를 덮어씁니다.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP