Feb-27-2019, 05:28 PM
(This post was last modified: Feb-27-2019, 05:28 PM by PythonNoob99.)
What is wrong with line 9?
position_in_fib_sequence = int(input("Which fibonaccinumber do you want to know?")) the_number_has_to_be_bigger_than = int(input("Bigger than?")) G1 = 0 G2 = 1 while G2 < position_in_fib_sequence: G1, G2 = G2, G1 + G2 print("The", str(position_in_fib_sequence) + "th", "fibonaccinumber bigger than", the_number_has_to_be_bigger_than, "is", G2) for i in range(position_in_fib_sequence-1): G1, G2 = G2, G1 + G2 print(G1, G2)