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
Novosadov [1.4K]
3 years ago
13

We will pass in a value N. Write a program that outputs the complete Fibonacci sequence for N iterations. Important: If N is 0,

then we expect to get an output of 0. If N=1 then we expect 0, 1 etc.
Computers and Technology
1 answer:
jasenka [17]3 years ago
3 0

Answer:

The program written in Python is as follows

def fibonac(N):

    series = ""

    for i in range(0,N+1):

         series = series + str(i) + ","

   return series[:-1]

N = int(input("Number: "))

print(fibonac(N))

Explanation:

This line defines the function fibonac

def fibonac(N):

This line initializes variable "series" to an empty string

    series = ""

This line iterates through the passed argument, N

    for i in range(0,N+1):

This line determines the Fibonacci sequence

         series = series + str(i) + ","

Lastly, this line returns the Fibonacci sequence

   return series[:-1]

The main starts here

The firs line prompts user for input

N = int(input("Number: "))

This line prints the Fibonacci sequence

print(fibonac(N))

You might be interested in
6. Suppose you’re assisting with a cable installation using fiber-optic cabling that will support Gigabit Ethernet. You’re appro
Natalka [10]

Answer:

You will use Single Mode Fiber (SMF).

Explanation:

SMF is the best option in this case since we will be installing segments of up to 4000m. SMF is known for its capability to maintain a high-quality signal and practically zero degradation across long distances.

5 0
3 years ago
Older Microsoft disk compression tools, such as DoubleSpace or ____, eliminate only slack disk space between files.
katen-ka-za [31]
I believe the answer is SDelete
6 0
3 years ago
In order to use NetWitness Investigator to analyze the same packets that you analyzed with Wireshark, you first had to save the
rusak2 [61]

Answer:

.pcap

Explanation:

He initially have to store the DemoCapturepcap.pcapng file throughout the older.pcap format in which of using NetWitness Examiner to examine a certain transmissions that the person examined with Wireshark.

PCAP should be used for the protocol analyzer, server control, traffic producer, server checker or device for detecting intrusion. It is quite user-friendly and seems to be compliant with such a large range of methods. In reality, for further over a variety of different transmission capturing methods, t is used as the platform.

5 0
3 years ago
(True or False) When you set styles in the Pages Properties dialog box, they will overwrite styles in an external style sheet?
levacccp [35]

Answer:

That will be True.

Explanation:

7 0
2 years ago
You have enabled IP routing on PLABSA01 after enabling the IPRouter in the registry. How will you verify whether the IP routing
drek231 [11]

Answer:

By typing ipconfig at the command prompt

Explanation:

To check if an ip router is enabled in a registry, simply do the following:

1. launch your command prompt from accessories in your windows start button

2. Type this command IPconfig

3. Strike the enter button on the keyboard

It will display the various pack of upload and download indicating how packages are routed.

4 0
3 years ago
Other questions:
  • Which task does Word NOT give you the ability to accomplish?
    12·1 answer
  • In the world of computers, the term ____ refers to the computerâs physical components, such as the monitor, keyboard, motherboar
    14·1 answer
  • Which part of a formal email is optional
    6·2 answers
  • the control programs managing computer hardware and software use the ______ function to control and prioritize tasks performed b
    8·1 answer
  • An array of integers named parkingTickets has been declared and initialized to the number of parking tickets given out by the ci
    14·1 answer
  • How do I give Brainliest? Will give brainliest when I figure out how
    8·2 answers
  • Generally speaking, the _______ the risk, the _______ the potential return or loss
    8·2 answers
  • A car manufacturer uses'simulation software during the design process for a new car. Which of the
    9·1 answer
  • U $ er Ideas for R 0 B 1 0 X?
    12·2 answers
  • 3. Cellular phone technology works on a system of geographically separated zones
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!