-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
Updated power_of_4.py #11152
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
Updated power_of_4.py #11152
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check with the pre-commit run --all-files --show-diff-on-failure
for your errors to go through
return c % 2 == 1 | ||
else: | ||
return False | ||
while number != 1 and number != 2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while number != 1 and number != 2: | |
while number not in (1, 2): |
else: | ||
return False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function now doesn't return anything if the if-statement evaluates to False. This is why the build is failing.
Closing tests_are_failing PRs to prepare for Hacktoberfest 2024 |
No description provided.