for i in range(100, 1, -2):
print(i)
This code will use the range() function to generate a sequence of numbers from 100 to 2, with a step size of -2. The for loop will iterate over this sequence and print each number.
To run this code, you can save it to a file with a .py extension and run it using the python command in a terminal or command prompt.
0 Comments