Add two numbers you were given · 주어진 두 숫자를 더하십시오
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
This one builds on a lesson you haven't finished yet. Do that lesson first: · 이 과제는 아직 완료하지 않은 수업에 기반합니다. 먼저 해당 수업을 완료하세요:
Python Basics · Getting input · 입력 받기 →
English
Add two numbers you were given
Read two whole numbers, one per line, and print their total. For 3 and 4, print 7.
Two reads, two int(...), then one +. Forget one int and you get 34 instead of 7 — Python joined the text rather than adding the numbers.
한국어
주어진 두 숫자 더하기
두 정수를 한 줄에 하나씩 읽어서 합계를 출력하세요. 3과 4라면 7을 출력합니다.
두 번 읽기, 두 int(...), 그리고 하나의 +이 필요합니다. int 하나를 잊으면 숫자를 더하는 대신 텍스트가 결합되어 34이 아니라 7이 됩니다 — Python이 숫자를 더하는 것이 아니라 텍스트를 연결했습니다.
Read two whole numbers, one per line, and print their total. For 3 and 4, print 7. · 두 정수를 한 줄에 하나씩 읽어서 합계를 출력하세요. 3과 4라면 7을 출력합니다.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.