Find The Longest String In A List | Python Example

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I write exact code to min: 2:43 and when i run module i get both Red and orange. Why do I get them both and not only orange?

theminers
Автор

strings = ['Red', 'Orange', 'Green']
longest_word = max(strings, key=len)
print(f"{longest_word} is the longest word, having {len(longest_word)} characters")

pchan
Автор

Why did we get Red as the output before?

RustysAdventures
Автор

Creat a function with two parametrs a and b : (12 × a + 25 × b) / (1 + a××(2××b)) and returns a result of the expression rounded up to the secon decimal place.🙏🙏🙏🙏🙏

eriksheraliev