shorter and efficient way of for loop in python stackoverflow code example Example: for loop in python :stack overflow for k in range(1,c):