Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
max solution in Clear category for The Most Wanted Letter by book1978
import string
def checkio(text: str) -> str:
return max(string.ascii_lowercase, key=text.lower().count)
print("Example:")
print(checkio("Hello World!"))
# These "asserts" are used for self-checking
assert checkio("Hello World!") == "l"
assert checkio("How do you do?") == "o"
assert checkio("One") == "e"
assert checkio("Oops!") == "o"
assert checkio("AAaooo!!!!") == "a"
assert checkio("abe") == "a"
print("The mission is done! Click 'Check Solution' to earn rewards!")
March 4, 2023
Comments: