Fibonacci sequence from Python Core
Hi brilliant people of Sololearn! I've not had a question for some time... I thought I was doing well. I've solved the task but I had to search for some direction. I feel that the task and the provided code (see my attachment) are either misleading, if the solution HAS to be solved in the way I have solved it or we've all missed something about recursion (and I'm still missing it). The task is to accept input of sequence lines and, using recursion, output the Fibonacci sequence until that value. The attached code shows the default code for the task and my main issue is the last line: fibonacci(num) I would like to solve it using this line as it is. I've also included other examples from the lesson that are all "clean" recursions - not using something like a 'for n in range(number)'. Can it be done? https://code.sololearn.com/coJrU8F7zz1d/?ref=app