Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Strings Have Length | Strings
Python Data Types
course content

Conteúdo do Curso

Python Data Types

Python Data Types

1. Numeric Types
2. Boolean Type
3. Strings

Strings Have Length

There is also a very useful function in Python that can give the length of a string -- len() function. Let's look at the example of using this function.

Tarefa

You have such strings apple,grape, orange. You have to get the length of each of these strings. Using such comparison operators >, < determine the longest string.

Tarefa

You have such strings apple,grape, orange. You have to get the length of each of these strings. Using such comparison operators >, < determine the longest string.

Tudo estava claro?

Seção 3. Capítulo 8
toggle bottom row

Strings Have Length

There is also a very useful function in Python that can give the length of a string -- len() function. Let's look at the example of using this function.

Tarefa

You have such strings apple,grape, orange. You have to get the length of each of these strings. Using such comparison operators >, < determine the longest string.

Tarefa

You have such strings apple,grape, orange. You have to get the length of each of these strings. Using such comparison operators >, < determine the longest string.

Tudo estava claro?

Seção 3. Capítulo 8
toggle bottom row

Strings Have Length

There is also a very useful function in Python that can give the length of a string -- len() function. Let's look at the example of using this function.

Tarefa

You have such strings apple,grape, orange. You have to get the length of each of these strings. Using such comparison operators >, < determine the longest string.

Tarefa

You have such strings apple,grape, orange. You have to get the length of each of these strings. Using such comparison operators >, < determine the longest string.

Tudo estava claro?

There is also a very useful function in Python that can give the length of a string -- len() function. Let's look at the example of using this function.

Tarefa

You have such strings apple,grape, orange. You have to get the length of each of these strings. Using such comparison operators >, < determine the longest string.

Seção 3. Capítulo 8
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
We're sorry to hear that something went wrong. What happened?
some-alt