Find Longest Word

Find the longest word in a string.

Code

General
max(str.split(), key=len)

Parameters

The string to search

Server

More Python Snippets