- 2
Give a number N, print alternate fibonacci numbers till n-th Fibonacci.
Python code
3 odpowiedzi
+ 2
Vishal baghel ,
your code seems to work quite good. so where is your question or issue?
+ 1
Where is your code?
0
n = int(input())
myList = [0,1]
for i in range(2, n):
myList.append(myList[i-1] + myList[i-2])
print(myList)