파이썬의 Datatype인 Set와 Dict에 대해 알아보자
dict
의 key, set
의 value 모두 hash화 되어 저장되기 때문에, 중복허용되지 않는다.my_dict = {key1: value1, key2: value2}
로 initiate를 하거나, my_dict = {}
를 통해 빈 dictionary를 생성할 수 있다.my_set = {value1, value2}
로 initiate 하거나, my_set = set()
를 통해 빈 set를 생성할 수 있다.