Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fruits = ['Apple','banana','Kiwi','melon']
- fruits_add = ['apple','Banana','KIWI','strawberry']
- for fruit.lower() in fruits_add:
- if fruit in fruits:
- print("already in list")
- SyntaxError: can't assign to function call
Advertisement
Add Comment
Please, Sign In to add comment