Skip to content

Conversation

OddExtension5
Copy link
Contributor

No description provided.

Comment on lines +13 to +18
def ExtendedEuclid(a, b):
if b == 0:
return (1, 0)
(x, y) = ExtendedEuclid(b, a % b)
k = a // b
return (y, x - k * y)
Copy link
Member

Choose a reason for hiding this comment

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

See https://pep8.org/#function-names In Python function_names should be lower_case and ClassNames should be CamelCase. This goes for all the functions.

Copy link
Member

Choose a reason for hiding this comment

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

Also, add some doctests https://docs.python.org/3/library/doctest.html
This goes for all the functions unless adding doctests makes no sense.

@OddExtension5
Copy link
Contributor Author

Closing in favour of #1248

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