Python For Loop Inside Function Executing Only Once

Python For Loop Inside Function Executing Only Once