Se7enSquared
10/13/2019 - 11:03 PM

Ignore case in collections.Counter() object

Creates a Counter dict with all lowercase letters for case-insensitive keys

mydict = Counter(map(str.lower, mylist))