Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ItemsList = []
- while True:
- new_item = input("Prompt")
- if new_item in ItemsList:
- ItemsList.remove(new_item)
- print('\n' + str(ItemsList))
- else:
- ItemsList.append(str(new_item))
- print('\n' + str(ItemsList))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement