중복을 허용하지 않고 순서가 없음. key와 value의 세트로 되어있다. {Key : Value, ...} 선언: sample_dict = {'일' : 'one', '이' : 'two', '삼' : 'three'} 접근: sample_dict['이'] # 'two' 키만 가져오기 sample_dict.keys() # dict_keys(['일', '이', '삼']) list(sample_dict.keys()) # ['일', '이', '삼'] 값만 가져오기 sample_dict.values() # dict_values(['one', 'two', 'three']) list(sample_dict.values()) # ['one', 'two', 'three'] 키, 값을 모두 가져오기 sample_dict.it..
List: 여러 요소를 한데 묶는 목적. [] 사용. 리스트 내의 리스트 가능 - 선언: sample_list = [1, 2, 3.14, '리스트', ['샘플', 15], 5, 5, 5] - append(): 리스트에 요소 추가하기 sample_list.append('추가하기') -> [1, 2, 3.14, '리스트', ['샘플', 15], 5, 5, 5, '추가하기'] - pop(): 특정위치의 요소를 빼기 sample_list.pop(2) -> [1, 2, 3.14, '리스트', ['샘플', 15], 5, 5, 5, '추가하기'] - remove(): 특정값의 요소를 빼기 sample_list.remove('추가하기') -> [1, 2, '리스트', ['샘플', 15], 5, 5, 5, '추가하기']..