This question is similar to Python - Find longest (most words) key in dictionary - but I need the pure number of characters.
Example input:
d = {'group 1': 1, 'group 1000': 0}
Output:
10
>>> max(len(x) for x in d)
or
>>> max(map(len, d))
1.4m articles
1.4m replys
5 comments
57.0k users