How long is it? · Qual é o tamanho?
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Esta página precisa de um navegador recente (com suporte a SharedArrayBuffer). Por favor, atualize Chrome, Edge, Firefox ou Safari para a versão mais recente.
This one builds on a lesson you haven't finished yet. Do that lesson first: · Este depende de uma lição que você não terminou. Faça essa lição primeiro:
Python Basics · Noções Básicas de Python · Working with strings · Trabalhando com strings →
English
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.
Português
Qual é o tamanho?
phrase é "Hello World". Armazene quantos caracteres ela tem em n.
len(...) conta todos os caracteres, incluindo o espaço. É uma função, então o texto vai dentro dos parênteses.
phrase is "Hello World". Store how many characters it has in n. · phrase é "Hello World". Armazene quantos caracteres ela tem em n.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.