Small typo in lesson 33 of 100 days of code

Bug description:
I found a small typo in the course, on day 33. Under the section “Common errors” the second solution is missing an input. Not a biggie, but I scratched my head for far longer than I care to admit.

This is the solution as it’s displayed:

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 = ("What do you want to remove?: ")
    if item in myAgenda:
      myAgenda.remove(item)
    else:
      print(f"{item} was not in the list")
  printList()

Here it is with the input:

import time
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()

Bug appears at this link: https://replit.com/@CaspianAlmerud/day-33100-days#main.py

Replit Profile: https://replit.com/@CaspianAlmerud

4 Likes

Nice catch! Hopefully the Replit team can get that fixed :smile:

1 Like

I’ll put it on the todo list! Thanks for tracking it down!

3 Likes

No worries! Thanks for the super quick response David.

this remains unfixed, was just about to post a thread