import math
import random

print(random.randrange(1, 10)) #1부터 9까지 수 중에 하나를 뽑음

print(math.pi) #원주율 값이 있는 변수
print(math.pow(2, 5)) #제곱값을 구하는 함수
print(math.ceil(3.1)) #올림
print(math.ceil(4.5))

print(random.choice("apple")) #시퀀스 중에 아무거나 하나 반환하는 함수
print(random.choice(['a','e','i','o','u']))

print(random.sample(range(1, 46), 5)) #1~45까지 5개의 숫자
print(random.sample("banana", 2))

Embed on website

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