Skip to content

collatz-conjecture: Add parameter to placeholder file - #691

Merged
ilya-khadykin merged 2 commits into
exercism:masterfrom
smt923:collatz-params
Oct 5, 2017
Merged

ilya-khadykin merged 2 commits into
exercism:masterfrom
smt923:collatz-params

Conversation

@smt923

@smt923 smt923 commented Oct 3, 2017

Copy link
Copy Markdown
Contributor

Closes #552, I decided on n instead of number this time as it matches the README which calls the integer n

@ilya-khadykin ilya-khadykin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR

Please see my comment below

@@ -1,2 +1,2 @@
def collatz_steps():
def collatz_steps(n):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like number better than n because it is too ambiguous and we as programmers should avoid such names,
Do you agree?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah I suppose it is more clear, and regarding my previous stuff about it matching the readme's, I think in this case n == number is pretty clear

@ilya-khadykin
ilya-khadykin merged commit 13be3f6 into exercism:master Oct 5, 2017
@ilya-khadykin

Copy link
Copy Markdown
Contributor

Thanks, @smt923!

You can find this Python style guide from Google helpful https://google.github.io/styleguide/pyguide.html?showone=Naming#Naming

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants