import sum1 print(sum1.sum(50, 55)) print(sum1.safe_sum(50, "55")) print(sum1.safe_sum(50, 60))
import sum1 x = 34 y = 25 print("sum is", sum1.sum(x, y))
from sum1 import sum print(sum(50, 55)) #sum1 모듈안에서 sum 함수만 사용하겠다고 선언했기 때문에 #아래 구문 실행 불가 #print(sum1.safe_sum(50, "55")) #print(sum1.safe_sum(50, 60))
import sum1 as s x = 34 y = 79 print("sum is", s.sum(x, y))