Thread Shed Challenge

Thanks for your answer mtf,
I understand how the strip command works and what you did in the code above. Yet I don’t understand why my code doesn’t remove the whitespace and if i change it to .strip(’ ') it doest, but only the whitespace after the datapoints.

I’ve made a screenshot of my written code, hopefully you can clear some things out for me!
Kind regards,
Stijn van den Berg

image

Line 121 needs to reassign, perhaps? Or append to a temporary list created in the outer list?