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

bookStrings 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.

123
string = 'watermelon' length = len(string) print(f'the length of the string "{string}" is {length}')
copy
Tâche

Swipe to start coding

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 8
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

Awesome!

Completion rate improved to 3.85

bookStrings Have Length

Glissez pour afficher le menu

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.

123
string = 'watermelon' length = len(string) print(f'the length of the string "{string}" is {length}')
copy
Tâche

Swipe to start coding

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

close

Awesome!

Completion rate improved to 3.85
Section 3. Chapitre 8
single

single

some-alt