Merge pull request #1316 from Tom1380/master

Cleaned up two tests.
This commit is contained in:
Noah
2019-08-21 20:44:21 -05:00
committed by GitHub
2 changed files with 3 additions and 8 deletions

View File

@@ -1,11 +1,8 @@
j = 0
while j < 1000:
total = 0
i = 0
while i < 100:
total += i
i += 1
# print(total)
j += 1

View File

@@ -1,17 +1,15 @@
def fib(n):
# a, b = 1, 1
a = 1
b = 1
for _ in range(n-1):
for _ in range(n - 1):
temp = b
b = a+b
b = a + b
a = temp
#a, b = b, a+b
return b
print(fib(1))
print(fib(2))
print(fib(3))
print(fib(4))
print(fib(5))
print(fib(5))