Python dictionary | 파이썬 객체
▒ 정의 d = {key1: value1, key2: value2, ..., keyn: valuen} ▒ 접근 d[valuen] ▒ values() d = {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'} values = d.values() print(list(values)) # Output: ['value1', 'value2', 'value3'] ▒ items() d = {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'} items = d.items() print(list(items)) # Output: [('key1', 'value1'), ('key2', 'value2'), ('key3', 'value3')]