Loading the catalog…
Loading the catalog…
문제 설명 제한 사항 1 ≤ a, b ≤ 100 입출력 예 입력 #1 4 5 출력 #1 4 + 5 = 9 풀이 * ⭐️풀이 1: * a, b = map(int, input().strip().split(' ')) print(f"{a} + {b} = {a + b}") * 풀이 2: * a, b = map(int, input().strip().split(' ')) print(a, '+', b,'=',a+b) * 풀이 3: * a, b = map(int, input().strip().split(' ')) c = a + b print(a, "+", b, "=", c) 핵심💡 f-string을 사용하면 문자열 안에 변수와 계산식을 {}로 넣어 간단하게 출력할 수 있다.
What RADAR observed and classified to build this opportunity. It is what the source published, not a verification that the offer is still active.
[프로그래머스] Lv.0 덧셈식 출력하기. 문제 설명 제한 사항 1 ≤ a, b ≤ 100 입출력 예 입력 #1 4 5 출력 #1 4 + 5 = 9 풀이 * ⭐️풀이 1: * a, b = map(int, input().strip().split(' ')) print(f"{a} + {b} = {a + b}") * 풀이 2: * a, b = map(int, input().strip().split(' ')) print(a, '+', b,'=',a+b) * 풀이 3: * a, b = map(int, input().strip().split(' ')) c = a + b print(a, "+", b, "=", c) 핵심💡 f-string을 사용하면 문자열 안에 변수와 계산식을 {}로 넣어 간단하게 출력할 수 있다.
Open sourceOpens an external website. Availability and terms may change.