All even numbers upto a range

num_range=int(input("enter range upto which you want to find even numbers : "))
print(“all even number between 1 and”,num_range,“are :”)
for i in range(1,num_range):
if i%2==0:
print(i)

3 Likes

Correct . Keep practicing .