전체 글

기록하자, 머리는 생각하는 곳이지 저장장치가 아니다.
문제1 두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오. 입력 첫째 줄에 A와 B가 주어진다. (0 < A, B < 10) 출력 첫째 줄에 A+B를 출력한다. 정답 a, b = map(int, input().split()) print(a+b) 몰랐던 부분 split 함수 test = 'Hello world : 헬로 월드' print(test) print(test.split()) print(test.split(sep=':')) print(test.split(maxsplit=1)) print(test.split(maxsplit=2)) print(test.split(maxsplit=3)) -- 출력값 Hello world : 헬로 월드 ['Hello', 'world', ':', '헬..