import math
import random

a = 10
def hello():
    global a
    b = 10
    print(a + b)
hello()

#메서드 - 특정 자료형에서만 쓸 수 있는 함수
#함수 - 자료형과 상관없이 쓸 수 있는 코드 모음
#모듈 - 미리 만든 함수나 변수를 저장한 것

print(math.pow(6, 2))
nums = [1,2,3,4,5,6,7,8,9,10]
print(random.sample(nums, 3))
print(random.choice(nums))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: