How long is it?
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
This one builds on a lesson you haven't finished yet. Do that lesson first:
Python Basics · Working with strings →
How long is it?
phrase is "Hello World". Store how many characters it has in n.
len(...) counts every character, including the space. It is a function, so the text goes inside its brackets.
phrase is "Hello World". Store how many characters it has in n.
Click Run to see the output here.