e2e-assure Interview Question

How to make a nested for loop in python