HTMLify
char_frequency.py
Views: 472 | Author: abh
1 2 3 4 5 | def char_frequency(string): freq = {} for c in string: freq[c] = freq.get(c,0)+1 return freq |
1 2 3 4 5 | def char_frequency(string): freq = {} for c in string: freq[c] = freq.get(c,0)+1 return freq |