Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fruits = ["apple", "mango","banana","orange"]
- for fruit in fruits:
- if fruit != "orange":
- print(fruit, end=',')
- else:
- print(fruit)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement