for i in range(8, 90, 3):
print(i)
This code will use the range()
function to generate a sequence of numbers from 8 to 89, with a step size of 3. 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