Python - Nested loops

Can anyone tell me what I’m doing incorrectly here? Or is it a bug?

Hey @betacoder57581 welcome to the forums.

Can we have a link to the lession? Also it’s better if you copy and paste your code here. Learn how to format it [How to] Format code in posts

Seems ok from here. If you try and run it twice and it fails you should get the option to ‘view solution’ appear. This will show you a comparison of your code along the ‘correct’ code.
It may be picking up something slightly off which it can’t reconcile.