Quick actions

cmd+k|ctrl+k

Navigation

Languages

36-3

Snippet info

Language

Python

Visibility

public

Author

python100

Created

2025-08-03T19:54:40.861413Z

Updated

2025-08-03T19:54:40.861413Z

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