Hello again! I’ve stumbled into another problem with Thread Shed! Here’s the link to the exercise:
My code is returning zero when it should be returning numbers in their 20s. I went through the walk through video and even though my code was similar I changed it to be exactly the same! Yet, it still doesn’t work! Here’s 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'))
Your help will be much very much appreciated!