Why doesn't this work?

Hi there!

Could you please tell me where I am wrong?

Many thanks,

I’m pretty sure it’s because your second for is indented instead of inline with the first one. The second for the if and the else should be inline with the first for. You probably already figured this out.