Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
max(..., key, default) solution in Clear category for The Longest Word by Phil15
def longest_word(sentence: str) -> str:
return max(sentence.split(), key=len, default='')
Oct. 7, 2023
Comments: