Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: My code which adds fibonacci numbers to a list adds too many terms.
Post: RE: My code which adds fibonacci numbers to a list...

(Jun-10-2020, 02:54 PM)DPaul Wrote: Misunderstanding. You meant to have values in the list which are lower than 100. My example creates a list with exactly 100 elements. You compared j > 100, wh...
STBK General Coding Help 7 2,527 Jun-10-2020, 03:31 PM
    Thread: My code which adds fibonacci numbers to a list adds too many terms.
Post: RE: My code which adds fibonacci numbers to a list...

(Jun-10-2020, 02:14 PM)DeaD_EyE Wrote: Use an infinite generator together with itertools.islice. from itertools import islice def fib(): a, b = 0, 1 while True: yield a a,...
STBK General Coding Help 7 2,527 Jun-10-2020, 02:20 PM
    Thread: My code which adds fibonacci numbers to a list adds too many terms.
Post: My code which adds fibonacci numbers to a list add...

Hi, I am new to programming and am self-learning, using projecteuler as a source of questions. I am trying to create a program which generates the fibonacci sequence until the nth term is sufficiently...
STBK General Coding Help 7 2,527 Jun-10-2020, 01:58 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020