example of using for loop over while loop python stack overflow Example: for loop in python :stack overflow for k in range(1,c):