So I’m trying to get through the first round of color_count. The answer, as we were told, is 28. i keep getting zero. can’t see what i’m doing wrong at this point.
here is my code:
def color_count(color): color_total = 0 for thread_color in thread_sold_split: if color == thread_color: color_total += 1 return color_total print(color_count('white'))
any help appreciated