collections.Counter([iterable-or-mapping]) mapping은 dictionary를 의미한다. Counter함수는 hashable objects를 세는 dict subclass다. 요소가 dictionary key로 저장되고 dictionary key의 개수가dictionary values다. Counts는 0 또는 음수같은 어떠한 정수값이든 허용한다. Counter는 존재하지 않는 요소에 대해 KeyError를 발생시키지 않고 0을 리턴한다. 그리고 요소의 count를 0으로 지정하는 것은 Counter에서 삭제를 의미하지 않는다. 완전히 지우려면 del을 사용한다. from collections import Counter s='I love python' counter=C..