Q. Write python that create a tuple storing first 9 term of Fibonacci series.


You can understand by Watching video :-



Answer :-

fib = (0,1,1)

for i in range(6):
    fib = fib + ( fib [ i +1] + fib [ i + 2 ] ,)

print(fib)

Output :-

(0, 1, 1, 2, 3, 5, 8, 13, 21)
>>>

11 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. You should have wrote ans instead of videos 😑😑😑

    ReplyDelete
    Replies
    1. but you can understand answer by watching video more easily : )

      Delete
  2. Thank you for making this great website

    ReplyDelete
  3. Solution ain't clear

    ReplyDelete
  4. Best website sir .. Very helpful .. Really appreciate it

    ReplyDelete
  5. this question and the 10th question from lists (type c), both contradict each other.

    ReplyDelete
  6. wow bro answers savage question

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post