ifor i in range code example Example 1: for loop from n to 1 in python range(10, 0, -1) Example 2: for i in range python for i in range(start, end): expression