Quick actions

cmd+k|ctrl+k

Navigation

Languages

33-2

Snippet info

Language

Python

Visibility

public

Author

python100

Created

2025-08-01T17:25:47.161688Z

Updated

2025-08-01T17:25:47.161688Z

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?: ")
    myAgenda.remove(item)
  printList()

INFO