Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Create fibonaci.py #866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Create fibonaci.py #866

wants to merge 2 commits into from

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