p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Strings II
Find longest word in a text
Find longest word in a text
Write a function called
find_longest
that returns the longest word from a given sentence.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output