Apr-13-2018, 09:05 PM
Use
The cube root of 27 is 3. 3 cubed is 27. 3**3 is 27. 27**(1/3) is 3.
int()
to ignore the non-integer values:>>> x = 9.4392 >>> x 9.4392 >>> int(x) 9 >>> y = 3.8743 >>> y 3.8743 >>> int(y) 3To get a root, use a fraction as an exponent. The square root of 9 is 3. 3 squared is 9. 3**2 is 9. 9**(1/2) is 3.
The cube root of 27 is 3. 3 cubed is 27. 3**3 is 27. 27**(1/3) is 3.