p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Strings II
Word counter
Word counter
Complete the function
counter
to return the number of words in a given string.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output