Quick actions

cmd+k|ctrl+k

Navigation

Languages

33-5

Snippet info

Language

Python

Visibility

public

Author

python100

Created

2025-08-01T17:37:25.727731Z

Updated

2025-08-01T17:37:25.727731Z

myAgenda = []
def printList():
  print() 
  for item in myAgenda:
    print(item)
  print() 
while True:
  menu = input("Add or Remove?: ")
  if menu == "add":
    item = input("What's next on the Agenda?: ")
    myAgenda.append(item)
  elif menu == "remove":
    item = input("What do you want to remove?: ")
    if item in myAgenda:
      myAgenda.remove(item)
    else:
      print(f"{item} was not in the list")
  printList()

INFO