Advertisement
dimkiriakos

printing

Oct 5th, 2021
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. fruits = ["apple", "mango","banana","orange"]
  2. for fruit in fruits:
  3.     if fruit != "orange":
  4.         print(fruit, end=',')
  5.     else:
  6.         print(fruit)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement