Секція 3. Розділ 8
single
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.
123string = 'watermelon' length = len(string) print(f'the length of the string "{string}" is {length}')
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 8
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат