Feb-21-2019, 10:17 PM
So you're getting the target value (what you want to be greater than in the sequence), and how many fibs beyond that point you're interested in.
The next task is to generate fibs, which you can do with a while loop.
The next task is to generate fibs, which you can do with a while loop.
last_number = 0 current_number = 1 while True: print(last_number) next_number = current_number + last_number last_number = current_number current_number = next_number # don't loop forever (just for testing, compare with user input when you do this) if current_number > 20: break