def evennums(num):
i = 0
while i <= num:
if i % 2 == 0:
print(i)
i = i + 1
while True:
input_num = input(‘숫자를 입력하세요> ‘)
if input_num == ‘done’:
break
else:
evennums(input_num)