BOJ 10951 Python

wooshh·2023년 1월 5일
0

python-boj

목록 보기
16/25

A+B-4

📚 A+B-4

try except 구문을 모르면 풀 수 없는 문제였다.

⌨️ 내 코드

while True:
    try:
        a, b = map(int, input().split())
    except:
        break
    print(a+b)

👨‍🏫 참고할 내용

try except

코딩도장을 참고하자.

profile
율전동 외향적 찐따

0개의 댓글