3. Quiz quiz~(Mission3)
처음에 헷갈리는 질문을 위주로 구성했어요~ 질문을 누르면 답이 나오긴하지만 먼저 풀어보시고 확장해서 답을 확인해주세요
def square(x):
return x * x
def apply(func, x):
return func(x)
print(apply(square, 5))
class Rectangle:
def __init__(self, width, height):
self.width = width
self.height = height
def area(self):
return self.width * self.height
def around(self):
return 2 * (self.width + self.height)
def my_func(a, b, c):
print(a, b, c)
my_list = [1, 2, 3]
my_func(*my_list)
Last updated