how to loop from 2 to n-1 in python code example Example: for loop from n to 1 in python range(10, 0, -1)