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.

Get hands-on with 1400+ tech skills courses.