첨부파일 YSG_Let's Python ch_06 Exercise.py 파일 다운로드 #1번 class Rectangle: width=height=0 def __init__(self,width,height): self.width=width self.height=height def area_calc(self): area = self.width*self.height return area def circum_calc(self): circum = 2*(self.width+self.height) return circum print("사각형의 넓이와 둘레를 계산합니다") w=int(input("사각형의 가로 입력:")) h=int(input("사각형의 세로 입력:")) print('-'*30) rect=Rectangle(w,h) print("사각형의 넓이:", rect.area_calc()) print("사각형의 둘레:", rect.circum_calc()) print('-'*30) #2번 f...
#
1번
#
2번
#
3번
#
4번
#
5번
#
임성구
원문 링크 : 파이썬 챕터6 연습문제