Add files via upload

This commit is contained in:
Ben 2018-01-21 03:34:09 -05:00 committed by GitHub
parent 1568432e82
commit 92e0aa29b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,13 @@
def fib(n):
ls = []
a,b = 0,1
n += 1
for i in range(n):
if (b % 2 == 0):
ls.append(b)
else:
pass
a,b = b, a+b
print (sum(ls))
return None
fib(10)