def even_number(): list = [] for n in range(0, 6): if n % 2 == 0: list.append(n) return list print(even_number())
for n in range(0,7): if(n%2 == 0): print(n)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)