Write a Python program to find the list of words that are longer than n from a given list of words
def func(lst1, n):
new_list = []
for i in lst1:
if len(i) > 3:
new_list.append(i)
return new_list
list1 = ["word", "fives", "sixteen", "ten"]
list2 = [3, 8, 4, 9]
#driver code
print(func(list1, 4))
About Author
I am a Web Developer, Love to write code and explain in brief. I Worked on several projects and completed in no time.
View all posts by Sunil Shaw