Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fibonacci numbers in lamda python

def fibonacci(count):
   listA = [0, 1]

   any(map(lambda _:listA.append(sum(listA[-2:])),
         range(2, count)))

   return listA[:count]

print(fibonacci(8))
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #fibonacci #numbers #lamda #python
ADD COMMENT
Topic
Name
4+3 =