1
0
Fork 0

Some python stuff???

main
Bill Ewanick 2024-03-15 00:02:42 -04:00
parent 8f0915640c
commit e0aab0618b
2 changed files with 31 additions and 0 deletions

View File

@ -83,6 +83,9 @@
gofumpt gofumpt
nodejs nodejs
python310
black
]); ]);
shellHook = '' shellHook = ''

28
src/python/2.py Normal file
View File

@ -0,0 +1,28 @@
fibs2 = [1, 2, 3, 5, 8, 13]
i = 1
j = 2
b = 0
n = 4000000
fibs = []
fibs.append(i)
fibs.append(j)
while b < n:
b = i + j
if b < n:
fibs.append(b)
else:
fibs
i = j
j = b
count = 0
for fib in fibs:
if (fib % 2) == 0:
count += fib
else:
count += 0
print(count)