You are viewing a single comment's thread. Return to all comments →
cube = lambda x: x**3 def fibonacci(n): iterations = range(int(n)) result = [] for i in iterations: if i == 0: result.append(i) elif i == 1: result.append(i) else: result.append((result[i - 2] + result[i - 1])) return result
Seems like cookies are disabled on this browser, please enable them to open this website
Map and Lambda Function
You are viewing a single comment's thread. Return to all comments →