Help needed with the Challenge- Nesting For Loops

Hi FCCers,

I got stuck with this challenge- Nesting For Loops.

here is my answer and it doesn’t work :frowning:

Can someone please help me? Thanks!

Line 5 seems to be the problem. when you pass in an array, line 5 empties the array all over again. :slight_smile:

Thanks! I deleted line 5 and it works! :grinning: