For loop getting skipped in a function

Hey guys, I’m learning the basics of python .I’ve got a problem in my code. it seems that the second for loop (line 9) is ignored. why is this happening and what should I do? thanks for help.

(ignore line 16- 23)

Have a little look at what you’re iterating through. Printing the contents of that call to range would help (you might want to unpack or convert it first).

1 Like

Also, the documentation for range() might be helpful to you, specifically with regard to the constraints on generating the range objects:


Edit: Helps if the link is actually a link… Time for more :coffee: