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