Find the longest word in a sentence, breaking ties by first occurrence.
Constraints
Example
>>> longest_word("The quick brown fox")
'quick'
>>> longest_word("Hello world")
'Hello'
>>> longest_word("a bb ccc")
'ccc'
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints