Ответ:
Python3:
def find_words_longer_than_n(word_list, n):
long_words = []
for word in word_list:
if len(word) > n:
long_words.append(word)
return long_words
words = ["яблоко", "банан", "апельсин", "грейпфрут", "арбуз"]
long_words = find_words_longer_than_n(words, 6)
print(long_words)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Python3:
def find_words_longer_than_n(word_list, n):
long_words = []
for word in word_list:
if len(word) > n:
long_words.append(word)
return long_words
words = ["яблоко", "банан", "апельсин", "грейпфрут", "арбуз"]
long_words = find_words_longer_than_n(words, 6)
print(long_words)