We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Map and Lambda Function
Map and Lambda Function
Sort by
recency
|
501 Discussions
|
Please Login in order to post a comment
def fibonacci(n): l = [] [l.append(l[i - 1] + l[i - 2]) if i >= 2 else l.append(i) for i in range(0, n)] return l
for small range 0<=n<=15 it's easier to just hardcode them lol