Code: Alles auswählen
def checkio(text):
text = text.lower()
text = text.replace(" ", "")
alphabet = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]
high = [0, ""]
for x in alphabet:
if text.count(x) > high[0]:
high = [text.count, x]
print high
Code: Alles auswählen
[<built-in method count of str object at 0xe33f00>, 'd']