#01
def fib(n):
    if n == 0 :
        return 0
    if n == 1:
        return 1
    return fib(n-2) + fib(n-1)

for i in range(10):
    print(fib(i))

#02
f = open("sample.txt")
lines = f.readlines()
f.close()

total = 0
for line in lines:
    score = int(line)
    total += score

average = total / len(lines)
f = open("result.txt", 'w')
f.write(str(average))
f.close()
7d26ab54927812670025d1091ee45501455888d8
<mask token>

def fib(n):
    if n == 0:
        return 0
    if n == 1:
        return 1
    return fib(n - 2) + fib(n - 1)


<mask token>

def fib(n):
    if n == 0:
        return 0
    if n == 1:
        return 1
    return fib(n - 2) + fib(n - 1)


for i in range(10):
    print(fib(i))
<mask token>
f.close()
<mask token>
for line in lines:
    score = int(line)
    total += score
<mask token>
f.write(str(average))
f.close()

def fib(n):
    if n == 0:
        return 0
    if n == 1:
        return 1
    return fib(n - 2) + fib(n - 1)


for i in range(10):
    print(fib(i))
f = open('sample.txt')
lines = f.readlines()
f.close()
total = 0
for line in lines:
    score = int(line)
    total += score
average = total / len(lines)
f = open('result.txt', 'w')
f.write(str(average))
f.close()

#01
def fib(n):
    if n == 0 :
        return 0
    if n == 1:
        return 1
    return fib(n-2) + fib(n-1)

for i in range(10):
    print(fib(i))

#02
f = open("sample.txt")
lines = f.readlines()
f.close()

total = 0
for line in lines:
    score = int(line)
    total += score

average = total / len(lines)
f = open("result.txt", 'w')
f.write(str(average))
f.close()