Stuck on python project thread shed

please check my code as at the end the output give me all 0

0
thread shed sold 0 threads of red thread today.
thread shed sold 0 threads of yellow thread today.
thread shed sold 0 threads of green thread today.
thread shed sold 0 threads of white thread today.
thread shed sold 0 threads of black thread today.
thread shed sold 0 threads of blue thread today.
thread shed sold 0 threads of purple thread today.

Two problems:

  1. The for loops that occur after line 125 should be out-dented to the left margin, so they do not repeat with every trip through the loop of line 119.

  2. Lines 144-147 are not working to do what you want. Insert print(thread_sold_split) to see what is happening.

1 Like

hi patrick,
thanks for your help but it still give me the same output :frowning: and also i have a big problems with the spaces between the lines

May we see what you’ve done thus far?

please check

Two very tiny corrections need to be made:

  1. Have you noticed that the script is listing every transaction four times? If you uncomment print(customers), etc, you will see that. Now look carefully at lines 121 through 123. That is where this “quadrupling” is occurring.

  2. Lines 145-148: There is an inconsistency between the use of sale and sales.