MCPcopy 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

1def fibonacci_genrator():
2 a, b = 0,1
3 while True:
4 a,b = b,a+b
5 yield b
6answer = 1
7gen = fibonacci_genrator()
8while len(str(next(gen))) < 1000:

Callers 1

sol2.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected