1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alex_Xolod [135]
3 years ago
10

Python: Write a program that asks the user how many Fibonnaci numbers to generate and then generates them.

Computers and Technology
1 answer:
Archy [21]3 years ago
7 0

Answer:

k (btw I kind of suck at python I use a lot of c++ but this is the best I can make up)

Explanation: def fibonacci():

   num = int(input("Please enter how many numbers would you like in your Fibonacci sequence: "))

   i = 1

   if num == 0:

       fib = []

   elif num == 1:

       fib = [1]

   elif num == 2:

       fib = [1,1]

   elif num > 2:

       fib = [1,1]

       while i < (num - 1):

           fib.append(fib[i] + fib[i-1])

           i += 1

   return fib

print (fibonacci())

input()

You might be interested in
What does SIP stand for?
agasfer [191]
Session Initiation Protocol, brainliest ?
4 0
4 years ago
Read 2 more answers
To enable grammar correction in powerpoint, you must first enable office ____ services.
sesenic [268]

Answer:

Grammar

Explanation:

8 0
2 years ago
Read 2 more answers
3<br> Select the correct answer.<br> What is the output of the following HTML code?<br>Please
maw [93]

Answer: or element_id Specifies the relationship between the result of the calculation, and the elements used in the calculation

form form_id Specifies which form the output element belongs to

name name Specifies a name for the output element

Explanation:

7 0
3 years ago
Read 2 more answers
Which tab should you choose to add a picture from a file to your presentation?
Tems11 [23]

C. Insert

Insert will let you inseet different things into your presentation.

6 0
4 years ago
Match each vocabulary word to its definition.
viktelen [127]

Answer:

can you show the picture??

5 0
3 years ago
Other questions:
  • What is the purpose of the BBC option in a email?
    7·1 answer
  • What is the smallest unit of data on the hard drive?
    5·1 answer
  • Which of the following is your personal record of payments and bill-paying?
    13·1 answer
  • This project involves writing a program that encodes and decodes messages. The program should prompt the user to select whether
    15·1 answer
  • The used of PPE in the shop includes the following, except:
    10·2 answers
  • Candy Kane Cosmetics (CKC) produces Leslie Perfume, which requires chemicals and labor. Two production processes are available:
    14·1 answer
  • Group of programs are software <br>​
    11·1 answer
  • You're making great progress on your assignment. You've defined the purpose of your message, identified both the primary and sec
    9·1 answer
  • Every time a key is pressed on the keyboard, the _______________ chip in the keyboard notices which key has been pressed.
    13·1 answer
  • Which operation is not efficiently supported by heaps?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!