Longest word
Created on May 19, 2020 by Julien Palard
Write a function giving the longest word in a given text.
Your function should be named longest_word
, take a single argument text
and
return a string which should be the longest word in the given text.
Beware: the given text can span several lines.
Example
1 2 3 4 |
|
Advice
Read the documentation of the len builtin function.
There's no corrections yet, hit the `Submit` button to send your code to the correction bot.
Keyboard shortcuts:
- Ctrl-Enter: Send your code to the correction bot.
- Escape: Get back to the instructions tab.