Guest User

Untitled

a guest
Mar 5th, 2024
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. fruits = ['apple', 'banana', 'cherry', 'date', 'elderberry']
  2. vitamin_c_content = [5, 10, 7, 2, 60] # in mg per 100g
  3. high_vitamin_c_fruits = [fruit for fruit, content in zip(fruits, vitamin_c_content) if content > 10]
  4. print(high_vitamin_c_fruits)
Advertisement
Add Comment
Please, Sign In to add comment