ex) from 패키지이름 import 모듈이름
합 : sum()
최대값 : max()
최솟값 : min()
거듭제곱 : pow() ex) pow(13,2) -> 13의2제곱
반올림 : round() ex) round(3.141592, 2) -> 3.14
math모듈
절댓값 math.fabs(-10) -> 10
올림 math.ceil(5.21) -> 6
내림 math.floor(5.21) -> 5
버림 math.trunc((5.21) -> 5
최대공약수 math.gcd(14,21) -> 7
팩토리얼 math.factorial(10) -> 3628800
제곱근 math.sqrt(4) -> 2
random 모듈
time 모듈
class Car: #클래스 선언
def __init__(self, color, length): #생성자, 속성
self.color = color
self.length = length
def doStop(self): #기능
print('stop!')
def doStart(self): #기능
print('Start!')