Python Thread Shed Step 8

Going forward, please format your code.
And please follow these guidelines before posting.

Check your indentation in your loops.

You might want to peruse this very topic here as this question has been posted several times and you will find a hint towards a solution: