1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # 6.5 ÇÔ¼ö¿¡ ÀÏÀ» ½ÃÅ°°í ±× °ªÀ» ¹Þ¾Æ¿Àµµ·Ï ÇÏÀÚ, 150ÂÊ # def calculate_area(radius): area = 3.14 * radius**2 return area # ÀÌÀü ÁÙ¿¡¼ ±¸ÇÑ area °ªÀ» È£Ãâ¹®¿¡ µ¹·ÁÁØ´Ù c_area = calculate_area(5.0) # calculate_are() ÇÔ¼ö°¡ °è»êÇÑ °ªÀ» c_area¿¡ ÀúÀå print(c_area) c_area = calculate_area(10.0) # calculate_are() ÇÔ¼ö°¡ °è»êÇÑ °ªÀ» c_area¿¡ ÀúÀå print(c_area) area_sum = calculate_area(5.0) + calculate_area(10.0) print(area_sum) | cs |