Skip to content
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

digital root method #6140

Closed
wants to merge 38 commits into from
Closed

digital root method #6140

wants to merge 38 commits into from

Conversation

meg-1
Copy link
Contributor

@meg-1 meg-1 commented May 11, 2022

Describe your change:

added the 'digital_root' method to maths/sum_of_digits.py.
a digital root is: https://en.wikipedia.org/wiki/Digital_root

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Documentation change?

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

@meg-1 meg-1 requested a review from Kush1101 as a code owner May 11, 2022 14:07
@ghost ghost added enhancement This PR modified some existing files awaiting reviews This PR is ready to be reviewed labels May 11, 2022
@ghost ghost added the tests are failing Do not merge until tests pass label May 12, 2022
fixed syntax, readibility, indentation
@meg-1
Copy link
Contributor Author

meg-1 commented Jun 1, 2022

@poyea , sorry to disturb, the pre-commits in my pull requests keep failing although everything seems alright with the code. the workflow keeps telling me to add blank lines, but it never lets the checks go through even when i add them. could you please reccomend something to fix this issue?

fixed pre-commit issues
@poyea
Copy link
Member

poyea commented Jun 2, 2022

FAILED arithmetic_analysis/in_static_equilibrium.py::arithmetic_analysis.in_static_equilibrium.polar_force can be ignored. See #6170

poyea and others added 2 commits June 11, 2022 20:50
fixed the Value Error [ 73d line ]
@meg-1
Copy link
Contributor Author

meg-1 commented Jun 18, 2022

@Kush1101 could you please check out this pull request?

added an exception for an invalid input, as well as tests regarding it.
@meg-1
Copy link
Contributor Author

meg-1 commented Jul 2, 2022

@Kush1101 could you please check out this pull request?

maths/sum_of_digits.py Outdated Show resolved Hide resolved
@poyea poyea self-assigned this Jul 3, 2022
meg-1 and others added 3 commits July 9, 2022 14:01
comitting the suggestion.

Co-authored-by: John Law <johnlaw.po@gmail.com>
implementing bot reccomendations [ fixing the TypeError return in digital_root ]
@ghost ghost removed the tests are failing Do not merge until tests pass label Jul 9, 2022
maths/sum_of_digits.py Outdated Show resolved Hide resolved
Co-authored-by: Christian Clauss <cclauss@me.com>
@ghost ghost added the tests are failing Do not merge until tests pass label Jul 13, 2022
@meg-1
Copy link
Contributor Author

meg-1 commented Aug 3, 2022

@poyea , hi! i would like to ask if the error shown after running my file in this commit is on my side, or on the repository's??
image
here's an attatched screen.

@cclauss
Copy link
Member

cclauss commented Aug 3, 2022

Please rebase this pull request.

@meg-1 meg-1 closed this Aug 13, 2022
@meg-1 meg-1 deleted the sum_of_digits branch August 13, 2022 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting reviews This PR is ready to be reviewed enhancement This PR modified some existing files tests are failing Do not merge until tests pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants