Quick actions

cmd+k|ctrl+k

Navigation

Languages

36-5

Snippet info

Language

Python

Visibility

public

Author

python100

Created

2025-08-03T19:58:41.27569Z

Updated

2025-08-03T19:58:41.27569Z

myList = []
 
def printList():
 print()
 for i in myList:
   print(i)
 print()
 
while True:
  addItem = input("Item > ").strip().capitalize()
  if addItem not in myList:
    myList.append(addItem)
  printList()
INFO