코드
from functools import reduce
def solution(n):
return reduce(lambda x, _ :[x[1], x[0] + x[1]], range(n-1), [0, 1])[1] % 1234567
from functools import reduce
def solution(n):
return reduce(lambda x, _ :[x[1], x[0] + x[1]], range(n-1), [0, 1])[1] % 1234567