def even_number(*args):
for even in args:
if even%2==0:
even
print(list(str(even)),end='')
I want to print the output in a list as [8,6,4]
, but rather it prints it out as [8],[6],[4]
. If I put out the last print statement and just print(even)
, it obviously doesn't list out the output.