Answer:
In Python:
def fib(nterms):
n1, n2 = 1, 1
count = 0
while count < nterms:
term = n1
nth = n1 + n2
n1 = n2
n2 = nth
count += 1
return term
Explanation:
This line defines the function
def fib(nterms):
This line initializes the first and second terms to 1
n1, n2 = 1, 1
This line initializes the Fibonacci count to 0
count = 0
The following while loops gets the number at the position of nterms
<em> while count < nterms:
</em>
<em> term = n1
</em>
<em> nth = n1 + n2
</em>
<em> n1 = n2
</em>
<em> n2 = nth
</em>
<em> count += 1
</em>
This returns the Fibonnaci term
return term
Answer:
Essay that analyzes and evaluates three different examples of digital media is described below in complete detail.
Explanation:
The 3 Types of Digital Media
- Owned Media
- Paid Media
- Earned Media
- Owned media is what your label owns and manages. It doesn’t mean that you certainly own the program, but your corporation regulates the respective tales through which they publish their content about assistance and products.
- Paid media is considered attractive, and we’re all knowledgeable of it. It includes all marketing ways that a brand spends to get viewers. Here you spend a third-party program with specs on what you want.
- Earned media is anything, whether content or remark, that stretches from another entity to help your brand. While most of it is optional, some expect you to contribute a substantial amount.
Answer:
10
Explanation:
This for-loop is simply iterating three times in which the value of x is being set to the value of x * 1. So let's perform these iterations:
x = 10
When i = 0
x = x * 1 ==> 10
When i = 1
x = x * 1 ==> 10
When i = 2
x = x * 1 ==> 10
And then the for-loop terminates, leaving the value of x as 10.
Hence, the value of x is equal to 10.
Cheers.
Answer:
A
Explanation:
This Information involves informing the young youth about adult and mature life
its answer in binary is 1000 and in decimal is 8.