Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help!
#4
Please, can someone help me with this problem:

The Fibonacci sequence is a series of related numbers. Usually, the series begins with the numbers 0 and 1, and every successive number is calculated as the sum of the previous two numbers. So the first 11 elements of the series are:
0 1 1 2 3 5 8 13 21 34 55
You must write a program that contains a function called fibonacci_index This function should receive as parameter the index (or position) that you want to know within the Fibonacci series. The function must return the Fibonacci number in that index. For example, if index 6 is requested, the result must be 5, and if index 11 is requested, the result must be 55.

SOS!! The deadline is in 40 min!!!

20 min...

I swear I'm also trying, but I'm stuck! that's why I'm asking for help
Reply


Messages In This Thread
Help! - by Karliux2002 - Jan-25-2020, 03:37 AM
RE: Help! - by Larz60+ - Jan-25-2020, 04:03 AM
RE: Help! - by Karliux2002 - Jan-25-2020, 04:06 AM
RE: Help! - by michael1789 - Jan-25-2020, 07:19 AM
RE: Help! - by Karliux2002 - Jan-25-2020, 07:21 AM
RE: Help! - by michael1789 - Jan-25-2020, 07:57 AM
Help! - by Karliux2002 - Jan-25-2020, 05:02 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020