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
Tanya [424]
3 years ago
14

Using Python, Write a function whose input is which term of the fibonacci sequence the user would like toknow, and whose output i

s that term in the fibonacci sequence. For example, ifyou called your function Fib, Fib(1) = 0, Fib(2) = 1, Fib(3) = 1, Fib(4) = 2,and so on.
Computers and Technology
1 answer:
Alika [10]3 years ago
4 0

Answer:

#here is code in python

#recursive function to find nth Fibonacci term

def nth_fib_term(n):

#if input term is less than 0

if n<0:

 print("wronng input")

# First Fibonacci term is 0

elif n==0:

 return 0

# Second Fibonacci term is 1

elif n==1:

 return 1

else:

#find the nth term of Fibonacci sequence

 return nth_fib_term(n-1)+nth_fib_term(n-2)

n=int(input("please enter the term:"))

print(n,"th Fibonacci term is: ")

print(nth_fib_term(n))

Explanation;

Read the term "n" which user wants to know of Fibonacci sequence.If term term "n" is less than 0 then it will print "wrong input". Otherwise it will calculate nth  term of Fibonacci sequence recursively.After that function nth_fib_term(n) will return  the term. Print that term

Output:

please enter the term:7

7 th Fibonacci term is:

13

You might be interested in
Why is the Microsoft website considered the best source for information about pagefile.sys?​
Bumek [7]

Answer:

uyjhjyr

Explanation:

yjdhtgjyhstjsytjuttjyh

6 0
3 years ago
Analytical CRM systems are the input for operational CRM systems.<br><br> True<br><br> False
Leona [35]

Answer: False

Explanation:Customer relationship management (CRM) is the management system for improving of the business ethics like relationship with customers and interactions etc.Analytical CRM is the analysis system for the customer data.Operational CRM consist of the business process in the front office phase and thus taking care of the customer.

Both the CRM system are considered equal in their operation. Generally, operational CRM helps in contributing to the analytical CRM as the input .So, the statement given is false.

3 0
3 years ago
PLEASE HELP! I accidently looked up a link, and now this same link keeps popping up everywhere, how do I stop this!?!? please he
Black_prince [1.1K]

Answer:

Try restarting your phone

Explanation:

8 0
2 years ago
Read 2 more answers
A network administrator has been creating a baseline of network performance. During this process, he realizes that one router is
LiRa [457]

If the network administrator found that one of his routers is slow in performance better to check the traffic packet transactions. If any huge file size is been transferred better to disconnect the router and reconnect.

Possible to kill the network task packet so the network speed can be restored.

<u>Explanation:</u>

Moreover, possible to scan the end-user PC or workstation or desktop whether any malware or spyware is affected, if so better to remove that particular PC or workstation or desktop to disconnected from the router.

Updating the PC or workstation or desktop OS patches to be done at regular intervals.

5 0
4 years ago
Whose task it is to ensure that the product flows logically from one step to another?
vlabodo [156]

Answer:

The broad responsibility of a UX designer is to ensure that the product logically flows from one step to the next. One way that a UX designer might do this is by conducting in-person user tests to observe one’s behavior.

Explanation: I don't know if this is what your looking for though.

3 0
3 years ago
Other questions:
  • Adam discovers a virus on his system that is using encryption to modify itself. the virus escapes detection by signature-based a
    14·1 answer
  • The purpose of a capacitor unit in a vacuum cleaner is to
    12·1 answer
  • Erick, who is taking an online course, sent an e-mail to his
    14·2 answers
  • One of the original forms of viruses, is usually stored on some form of removable media. When the removable media is connected t
    9·1 answer
  • Generate an array x that has n=100 random numbers that are uniformly distributed over the interval [0,1) . Look up how to use th
    8·1 answer
  • Complete the below method, isPalindrome(), that takes in a String and returns a boolean. The boolean should be true if the Strin
    7·1 answer
  • Your source data is of 50 GB. You make a full backup. Next week, once again you perform a full backup, but this time 10 more GB
    10·1 answer
  • Random Walker Collisions In lecture, we saw how to model the behavior of a random walker on a 2D grid using a Monte Carlo simula
    8·1 answer
  • What was the name of first computer?
    14·1 answer
  • A manager suspects that one of his team members has been fraudulently accessing confidential and sensitive information and breac
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!