I am trying find and store the first 50 elements of the Fibonacci Sequence into an array by looping. I am quite new to Python and I can't get past this point, I am very frustrated that I can't figure out how to do this.
My code so far:
x=51
def Fibonacci(x):
First_Value=0
Second_Value=1
for i in range(x):
Next_value = First_Value
First_Value = Second_Value
Second_Value = Next_value + Second_Value
return Fist_Value"
But I can't figure out how to print this in an array where I have to show the first 50 values.