mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 10:48:58 +08:00
psf/black code formatting (#1421)
* added sol3.py for problem_20 * added sol4.py for problem_06 * ran `black .` on `\Python`
This commit is contained in:

committed by
Christian Clauss

parent
11e2207182
commit
7592cba417
@ -27,11 +27,11 @@ def solution(n):
|
||||
44
|
||||
"""
|
||||
|
||||
a = [0,1]
|
||||
a = [0, 1]
|
||||
i = 0
|
||||
while a[i] <= n:
|
||||
a.append(a[i] + a[i+1])
|
||||
if a[i+2] > n:
|
||||
a.append(a[i] + a[i + 1])
|
||||
if a[i + 2] > n:
|
||||
break
|
||||
i += 1
|
||||
sum = 0
|
||||
|
Reference in New Issue
Block a user