딕셔너리 구축 & comprehension
딕셔너리 구축 다음과 같은 리스트가 주어질 때, 각각의 요소의 개수를 value 값으로 갖는 딕셔너리를 만들어라 # 변수명이 book_title인 리스트 생성 book_title = ['great', 'expectations', 'the', 'adventures', 'of', 'sherlock', 'holmes', 'the', 'great', 'gasby', 'hamlet', 'adventures', 'of', 'huckleberry', 'fin'] [출력 예시] {'great': 2, 'expectations': 1, 'the': 2, 'adventures': 2, 'of': 2, 'sherlock': 1, 'holmes': 1, 'gasby': 1, 'hamlet': 1, 'huckleberry': ..
2021. 8. 1.