python for loop from 1 to n code example
Example 1: for loop from n to 1 in python
range(10, 0, -1)
Example 2: python for loop
my_list = ["milk", "coffee", "bread"]
# i stands for iterator
for i in my_list:
print(i) # prints every element of my_list