start = int(input("Enter a number: "))
for number in range(1, start + 1):
if (number % 2 == 0):
print("{0}".format(number), end=",")
I have this code that prints out the right data but I don't want the input to be in the output and how to I remove the final comma. Plus how do I add the 0 at the beginning? How do I fix this?
Example if I input 10. The output needs to be 0,2,4,6,8