TIL | 알고리즘 | 자료구조 | 맵 / 집합

이도운·2022년 1월 15일
0

TIL

목록 보기
52/73
post-thumbnail

m = {}
m["wepungsan"] = 10
m["mary"] = 5
m["happy"] = 20

print("size : ", len(m))

for k in m:
   print(k, m[k])

집합

s = set()

s. add(10)
s. add(20)
s. add(25)

print("size : ", len(s))

for i in s:
   print(i)
profile
⌨️ 백엔드개발자 (컴퓨터공학과 졸업)

0개의 댓글