sguruapp@gmail.com
facebook vk instagram Телеграм youtube
Назад

Beautiful code-Python short code

products = ["Red apple", "Green apple", "Green bananas",
"White grapes", "Apple juice"]
list_from_apples = []

for item in products:
if "apple".lower() in item.lower():
list_from_apples.append(item)

print(list_from_apples)

Read more about it