The code I currently have:
lst = [[0, 0, 0, 0, 0, 1], [1, 2, 3, 4, 5, 4, 3, 0], [1, 4, 5, 6, 7, 0]]
for week in lst:
print(week)
for day in week:
if day == 0:
week.remove(day)
print(lst)
#[[0, 0, 1], [1, 2, 3, 4, 5, 4, 3], [1, 4, 5, 6, 7]]
I have hard time understanding why the zeroes in the first sublist are not being removed