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

created perfect_cube.py #2076

Merged
merged 4 commits into from
Jun 11, 2020
Merged

created perfect_cube.py #2076

merged 4 commits into from
Jun 11, 2020

Conversation

vicky1999
Copy link
Contributor

To find whether a number is a perfect cube or not.

perfect_cube(27) ----> True
perfect_cube(4) ----> False
perfect_cube(8) ----> True

return (val * val * val) == n


if(__name__ == '__main__'):
Copy link
Member

Choose a reason for hiding this comment

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

Please format you code with psf/black to remove the clutter.

@cclauss cclauss merged commit 3893ed3 into TheAlgorithms:master Jun 11, 2020
stokhos pushed a commit to stokhos/Python that referenced this pull request Jan 3, 2021
* created perfect_cube.py

To find whether a number is a perfect cube or not.

* Update perfect_cube.py

* Update perfect_cube.py

* Update perfect_cube.py
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