+ 2

Generator fed Fibonacci Sequence

Someone had an issue the other day, but I can't find their post/code. They were trying to get Fibonacci numbers with an infinite generator and encountering a string of 1s as output. I've created my own version, and in the process found their bug. I've made it public in case it helps anyone. https://code.sololearn.com/cUTVJ24izumg/?ref=app

6th May 2017, 4:35 AM
Jim
Jim - avatar
4 Answers
+ 5
Your code seems to work ^^ ( now? ) Anyway, I found the thread you refered in your question: https://www.sololearn.com/Discuss/365421/?ref=app ;)
6th May 2017, 10:09 AM
visph
visph - avatar
+ 3
Ah, hah! Thanks, looks like it was resolved before I finished this, but I half expected that anyway
6th May 2017, 3:10 PM
Jim
Jim - avatar
17th Nov 2017, 1:43 AM
#RahulVerma
#RahulVerma - avatar