Skip to content

Conversation

@ShadowSMCodes
Copy link

This shows 2 functions to find and print first 5 fibonacci numbers

This shows 2 functions to find and print first 5 fibonacci numbers
Copy link
Member

@poyea poyea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Please use 4 spaces to indent, as specified in our Contribution Guide.

Changed the indentation to 4 Spaces
Copy link
Member

@poyea poyea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although your code compiles, did you make a difference comparing to maths/fibonacci_sequence_recursion.py? (We kind of refrain from merging code that appears or, in some sense, the same into the repository. Otherwise, well, you could imagine.)
I suggest you change this into an iterative approach. Remember to write tests for your code (Perhaps you've forgotten this time; as said in Contribution Guidelines)!

Please consider changing it a little bit! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants