To find even series

n = int(input("Enter the number of terms: "))

even_series = []

for i in range(1, n+1):
if i % 2 == 0:
even_series.append(i)

print("The even series is: ", even_series)

1 Like

start = int (input(“enter the start range:”)
end = int (input(“enter the end of range:”)
for num in range (start, end+1)
if num%2==0:
print(num,end=" ")

1 Like

n = int(input(“Enter the number of even term”)
even _series =

for i in range(1, n=1):
if i %2==0:
Even_series.append(i)

print(“The even series is:” even_series)

Correct :100: keep it up :fire:

1 Like

Good and correct :100: . Keep it up