How to write a Python program that asks the user how many Fibonacci numbers to print

preview_player
Показать описание
The Fibonacci numbers are the sequence below, where the first two numbers are 1, and each
number thereafter is the sum of the two preceding numbers. Write a program that asks the
user how many Fibonacci numbers to print and then prints that many.
1, 1,2, 3,5, 8,13,21, 34,55, 89

How to write a Python program that asks the user how many Fibonacci numbers to print and then prints that many by using eval(), input(), Print() and for loop only.
Рекомендации по теме
welcome to shbcf.ru