I'm a bit stuck with the task below. i don't expect someone to do it for me, but i don't know how to even begin to express a Fib sequence using a for loop.
"A Fibonacci sequence is composed of elements created by adding the two previous elements. Using a
for loop or a while loop, create a program that will find the find the first 20 elements of the sequence
starting with two numbers input by the user. The average value of the ratio of consecutive elements
in the sequence must also be calculated."
This is my wonderful attempt...
f1= input('f1:')
f2= input('f2:')
help for
Any help much appreciated.
"A Fibonacci sequence is composed of elements created by adding the two previous elements. Using a
for loop or a while loop, create a program that will find the find the first 20 elements of the sequence
starting with two numbers input by the user. The average value of the ratio of consecutive elements
in the sequence must also be calculated."
This is my wonderful attempt...
f1= input('f1:')
f2= input('f2:')
help for
Any help much appreciated.