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

Open
wants to merge 4 commits into
base: master
from
Open

created perfect_cube.py #2076

wants to merge 4 commits into from

Conversation

@vicky1999
Copy link
Contributor

vicky1999 commented Jun 6, 2020

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

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

vicky1999 added 4 commits Jun 6, 2020
To find whether a number is a perfect cube or not.
return (val * val * val) == n


if(__name__ == '__main__'):

This comment has been minimized.

Copy link
@cclauss

cclauss Jun 6, 2020

Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.