# make the program body the suite of a for statement for n in range(10): if n % 2 == 0: result = '' for i in range(n): value = i + 1 if value % 2 == 0: result += (str(value) + ' ') print(result)