Fibonacci Python â unexpected additional output âNoneâ, in the end
Hi lovely people, how are you todayyyy đđ đ đIâve got a specific question: This code below almost works â i do get the desired output..but i also get an annoying âNoneâ, as an additional output in the end. And i donât know how to make it go away. So my output is: 0 1 1 2 3 None If I make the âNoneâ go away, SoloLearn will accept it. And my code is: num = int(input()) def fibonacci(n): #complete the recursive function fibolist = [0, 1] for i in range(n): if i>=2: fibolist.append(fibolist[i-2] + fibolist[i-1]) for el in fibolist: print(el) print(fibonacci(num)) đ€Any ideas? Please do NOT post your solution in this thread â there are many Fibonacci Python threads in SoloLearn already. This is a specific question, which might help users who have also seen this situation elsewhere. So why is the âNoneâ there? Thank you đđ