Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ fibonacci_genrator
Function
fibonacci_genrator
project_euler/problem_25/sol2.py:1–5 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
def
fibonacci_genrator():
2
a, b = 0,1
3
while
True:
4
a,b = b,a+b
5
yield
b
6
answer = 1
7
gen = fibonacci_genrator()
8
while
len(str(next(gen))) < 1000:
Callers
1
sol2.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected