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.
두 가지 요청하기
색상을 입력받고, 그다음 동물을 입력합니다. 빈칸을 사이에 두고 한 줄에 출력합니다: red와 fox의 경우 "red fox"를 출력합니다.
각 input()는 ONE 줄을 읽으므로, 두 가지를 얻으려면 두 번 호출해야 하며, 각각 별도의 변수가 필요합니다. 그렇지 않으면 두 번째 입력이 첫 번째를 덮어씁니다.
Read a colour, then an animal. Print them on one line with a space between: for red and fox, print "red fox". · 색상을 입력받고, 그다음 동물을 입력합니다. 빈칸을 사이에 두고 한 줄에 출력합니다: red와 fox의 경우 "red fox"를 출력합니다.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.