Quick actions

cmd+k|ctrl+k

Navigation

Languages

36-4

Snippet info

Language

Python

Visibility

public

Author

python100

Created

2025-08-03T19:56:43.239246Z

Updated

2025-08-03T19:56:43.239246Z

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