check if a number is perfect cube in python
x = int(input())
print(int(round(x ** (1. / 3))) ** 3 == x)
check if a number is perfect cube in python
x = int(input())
print(int(round(x ** (1. / 3))) ** 3 == x)
how to perform cube in python
# Python Program to Calculate Cube of a Number
number = float(input(" Please Enter any numeric Value : "))
cube = number * number * number
print("The Cube of a Given Number {0} = {1}".format(number, cube))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us