Answer:
using while loop
num = 0
while num < 5:
print(num)
num += 2
or you can use for loop and range
for num in range(0, 5, 2):
both will produce the output
0
2
4
1.6m questions
2.0m answers