I want to be able to count 5 at every step of 2 while condition is less than 1000 for example:
i = 0
j = 2000
k = 3000
while i < 1000:
i += 2
for x in range(5):
print(i)
j += 2
for x in range(5):
print(j)
k += 2
for x in range(5):
print(k)
but the output just print i, j, k 5 times
output:::
2
2
2
2
2
2002
2002
2002
2002
2002
3002
3002
3002
3002
3002
4
4
4
I want the the result to be: .....
2
3
4
5
6
2002
2003
2004
2005
2006
3002
3003
3004
3005
3006
8 #please note here that 8(i) continue by 2 steps from 6
9
10
etc..........
i will like to know a more simpler and pythonic way to do this. Thanks
timeit