import time

def fib(n):
    f=[0,1]
    for i in range(2,n+1):
        f.append(f[i-1]+f[i-2])
    return f[n]

n=int(input("Enter the number: "))
start_time = time.time()
print(fib(n))

print("--- Program executed in %s seconds ---" % (time.time() - start_time))

c5a77baac125db94ccb608eb6ccf9f1e4be07b33
<mask token>


def fib(n):
    f = [0, 1]
    for i in range(2, n + 1):
        f.append(f[i - 1] + f[i - 2])
    return f[n]


<mask token>

<mask token>


def fib(n):
    f = [0, 1]
    for i in range(2, n + 1):
        f.append(f[i - 1] + f[i - 2])
    return f[n]


<mask token>
print(fib(n))
print('--- Program executed in %s seconds ---' % (time.time() - start_time))

<mask token>


def fib(n):
    f = [0, 1]
    for i in range(2, n + 1):
        f.append(f[i - 1] + f[i - 2])
    return f[n]


n = int(input('Enter the number: '))
start_time = time.time()
print(fib(n))
print('--- Program executed in %s seconds ---' % (time.time() - start_time))

import time


def fib(n):
    f = [0, 1]
    for i in range(2, n + 1):
        f.append(f[i - 1] + f[i - 2])
    return f[n]


n = int(input('Enter the number: '))
start_time = time.time()
print(fib(n))
print('--- Program executed in %s seconds ---' % (time.time() - start_time))

import time

def fib(n):
    f=[0,1]
    for i in range(2,n+1):
        f.append(f[i-1]+f[i-2])
    return f[n]

n=int(input("Enter the number: "))
start_time = time.time()
print(fib(n))

print("--- Program executed in %s seconds ---" % (time.time() - start_time))
