aboutsummaryrefslogtreecommitdiff
path: root/challenge-254/eric-cheung/python/ch-1.py
blob: 3a08de153974c891fef593056d034b5ce22a86be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import math

## nInput = 27  ## Example 1
## nInput = 0  ## Example 2
nInput = 6  ## Example 3

dCubicRoot = nInput ** (1. / 3.)

if dCubicRoot - int(dCubicRoot) > 0:
    print (False)
else:
    print (True)