#!/usr/bin/env python3

# Student 3's solution

# Student program for basic variable modification
# Note: This student tried to come up with a smart solution to Question 3,
# but unfortunately missed the first part of the question.

# Question 1:
# Create the fibonacci function, fib().

def fib(num):
    if num == 0:
        return 0
    elif num == 1:
        return 1
    else:
        return fib(num - 1) + fib(num - 2)

# Question 2:
# Create a variable, x, which is assigned the value of fib(15).

x = fib(15)

# Question 3:
# Create a list of the first 10 fibonacci numbers.
# Note: Initialize the list with 1-10, then call the fib() function on them.

fib_list = []

for i in range(1, 11):
    fib_list.append(fib(i))
