I am currently learning Python and decided to make this program that does a Fibonacci Sequence so i could subsequently import it on a new program, however somethings wrong with it and I am not sure what it is.
print(input('Please state the value of n: ' ))
a, b = 0, 1
print(a)
while b < n:
print(b)
a, b= b, a+b
I wanted to be able to import the input command but apparently somethings wrong with the code. Any help?
I tried adding int(input('Please state the value of n'))
but it still does not work for some reason.