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

Add two numbers you were given · ⁨주어진 두 숫자를 더하십시오⁩

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이 숫자를 더하는 것이 아니라 텍스트를 연결했습니다.

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

IGCSE, A-Level & AP