#딕셔너리는 KEY와 VALUE가 있는 자료형이다.
#기본적인 형태 dic = {key : value} 짝이 있다.
dic1 = {'name': '강민준', 'age': 10, 'school': '가고파초등학교'}
print(dic1['name']) #key1 값으로 value1 값을 찾아냈다.
#딕셔너리 추가하기 dic[key] = value
dic1['hobby'] = '게임하기'
print(dic1)
del dic1['name']
print(dic1)
#딕셔너리의 key값은 바뀔 수 없다
dic2 = {(1, 2, 3):'num'}
print(dic2)
To embed this project on your website, copy the following code and paste it into your website's HTML: