<filename>eo-python-runtime/tests/example_programs/utils.py
from functools import reduce
import operator


def fibonacci(n):
    if n < 3:
        return 1
    else:
        memo = [1] * n
        for i in range(2, n):
            memo[i] = memo[i - 1] + memo[i - 2]
        return memo[n - 1]


def factorial(n):
    return reduce(operator.mul, range(1, n + 1), 1)

<filename>eo-python-runtime/tests/example_programs/utils.py
from functools import reduce
import operator


def fibonacci(n):
    if n < 3:
        return 1
    else:
        memo = [1] * n
        for i in range(2, n):
            memo[i] = memo[i - 1] + memo[i - 2]
        return memo[n - 1]


def factorial(n):
    return reduce(operator.mul, range(1, n + 1), 1)
