Light Mode
Dark Mode
It works outside checkio and the example

Can't find why this will not pass the checks.

def checkio(text: str) -> str: freq = {} for each in text: each = each.lower() if each in freq: freq[each] += 1 elif each.isalpha(): freq[each] = 1 maxkeys = [key for key, value in freq.items() if value == max(freq.values())] if len(maxkeys) == 1: return maxkeys else: return min(maxkeys)

Created: Aug. 23, 2022, 9:37 p.m.
Updated: Aug. 24, 2022, 7:32 a.m.
0
7
User avatar
jharmond