Odd & even numbers series

number = int(input("Enter the Number : "))
even_lst = [ ]
odd_lst=[]
for k in range (0,number+1):
if k % 2 == 0:
even_lst.append(k)

print(“The even list:”,even_lst)

for i in range(1,number):
if not(i%2==0):
odd_lst.append(i)

print(“the odd_lst:”,odd_lst)

2 Likes

Keep practicing. Keep it up :boom: