I'm working on a practice problem that says, "Use a "while" loop to print out every fifth number counting from 1 to 1000."
I can't seem to make it work.
This is what I've tried so far (as well as several small tweaks of this).
num = 1
while num in range(1, 1001):
if num % 5 == 0:
num += 1
print(num)
Thank you!
print range(1, 1001, 5)?use a "while" loop