Python Program Is Skipping Inner Loop Stack Overflow

Python Program Is Skipping Inner Loop Stack Overflow