Strings
7 / 18
EasyOutput prediction

strip() removes leading and trailing whitespace

What does this code print?

s = "  hello world  "
print(len(s.strip()))

← → arrow keys to navigate

Sign in to save your progress.

strip() removes leading and trailing whitespace - Python Strings Quiz | Unnested