Help needed with the Challenge- Nesting For Loops

Help needed with the Challenge- Nesting For Loops
0

#1

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!


#2

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


#3

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