How to apply fibonacci for first n-th term using one for loop?

前端 未结 0 643
遥遥无期
遥遥无期 2021-01-06 10:54

hello i just created a new function to calculate the first nth term in Fibonacci: it\'s like this

 def fibo(n):
  if n==0: 
   return 0  
  if n==1: 
   retur         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题