...

/

Challenge: Generate the First 20 Fibonacci Numbers

Challenge: Generate the First 20 Fibonacci Numbers

Write code to generate the first 20 Fibonacci numbers.

Using list comprehension, write a program to generate the first 20 Fibonacci numbers:

  • Input: A list containing the first two Fibonacci numbers.
  • Output: The first 20 Fibonacci numbers will be printed on the console.
Access this course and 1400+ top-rated courses and projects.