Answers for "fibonacci series list comphrehension in python"

0

fibonacci series list comphrehension in python

n=10
mylist=[0,1]  
[mylist.append(mylist[-2]+mylist[-1]) for n in range(n)]
print(mylist)
Posted by: Guest on May-06-2020

Code answers related to "fibonacci series list comphrehension in python"

Python Answers by Framework

Browse Popular Code Answers by Language