# -*- coding: utf-8 -*-
"""
Created on Fri Dec 24 12:47:01 2021

@author: Sim
"""
# defaultdict1.py
import collections as cln

def unknown_key(): 
    return "해당 자료없음"
      
# Defining the dict 
d = cln.defaultdict(unknown_key) 
d["a"] = 1; d["b"] = 2
  
print(d["a"], d["b"], d["c"])


d2 = cln.defaultdict(list) 
d2["a"] = [1,2]; d2["b"] = [2,3]
print(d2["a"], d2["b"], d2["c"])
