list = [ 'a', 'b', 'c' ]
for index, value in enumerate(list):
print(indes, value)
# 출력 :
0 a
1 b
2 c
집합 자료형을 만들어 중복제거, 순서 없이 저장
list = [ 1, 2, 2, 3, 3, 4 ]
my_set = set(list)
print(my_set)
# 출력 : { 1, 2, 3, 4 }
from collections import Counter
list = [ 1, 2, 2, 3, 3, 3 ]
count = Counter(list)
print(count)
# 출력 : Counter({3:3, 2:2, 1:1})
# 3이 3개, 2가 2개, 1이 1개
import math
print(math.ceil(4.2)) # 출력 : 5
print(math.ceil(5.8)) # 출력 : 6
print(math.ceil(5.0)) # 출력 : 5