Strings
10 / 18
EasyOutput prediction

split() default splits on whitespace

What does this code print?

s = "  hello   world  "
words = s.split()
print(words)
print(len(words))

← → arrow keys to navigate

Sign in to save your progress.