So here I defined a function in python that tells if a given number is even or odd.
Now i want to create a list with the numbers in the result as its elemets, how is that possible?
def even_till_n(number):
for in range(number+1):
if (i%2 == 0):
print(i)