0

Am I missing a simple way soloLearn intended me to print the fibonacci sequence?

Using recursion, the project asked to print n numbers of the Fibonacci sequence. I was having a lot of trouble figuring out how to make it print what they wanted with their template, and after searching for help found MANY examples that completely changed to function call that they had used. Am I missing a simple way to have printed the numbers that SoloLearn intended for me to use? I've attached the template and my solution in which I call the function inside of a for loop with a print statement. https://code.sololearn.com/cfS0NlL3HgA4/?ref=app https://code.sololearn.com/cnEOJeyvsF60/?ref=app

11th Jan 2023, 5:01 PM
Tyler Willke
Tyler Willke - avatar
2 Answers
+ 2
Tyler Willke Your solution is correct. That is as simple as it gets. However, I suggest that you use the recommended 4 spaces or <tab> per level of indentation to make for more readable code.
11th Jan 2023, 5:27 PM
Mozzy
Mozzy - avatar
+ 2
You are not alone! It does seem extremely odd that the template would be a red herring. https://www.sololearn.com/discuss/3180635/?ref=app
11th Jan 2023, 10:06 PM
Ausgrindtube
Ausgrindtube - avatar