Skip to content

Commit

Permalink
removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kyclark committed Feb 11, 2021
1 parent 4ddb5c8 commit b0fe236
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 04_fib/solution1_list_closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main() -> None:

def fib(n: int) -> int:
nums = [0, 1]
for i in range(n - 1):
for _ in range(n - 1):
nums.append((nums[-2] * args.litter) + nums[-1])
return nums[-1]

Expand Down
2 changes: 1 addition & 1 deletion 04_fib/solution1_list_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def fib(n: int, litter: int) -> int:
""" Find Fibonnaci """

nums = [0, 1]
for i in range(n - 1):
for _ in range(n - 1):
nums.append((nums[-2] * litter) + nums[-1])

return nums[-1]
Expand Down

0 comments on commit b0fe236

Please sign in to comment.