python loop only even numbers code example Example: python for loop even numbers for i in range(2,11,2): # range(start, end, step) print(i)