Data Structures, Data Engineering, Arrays, Algorithms, Data Science.
index = days.index(day) removed_value = sales.pop(index) print(f"Deleted {removed_value} sales for {day}.") else: print("Invalid day.") def update_sales(day, value): if day in days: index = days.index(day) sales[index] = value print(f"Updated sales for {day} to {value}.") else: print("Invalid