-4

how can I write x^(2/3) in python code? I want to include 1/3 and 2/3 in my calculation but unable to do so. please help

Hayat
  • 1,539
  • 4
  • 18
  • 32
Aashana
  • 15
  • 1
  • 3

2 Answers2

4

As you would do it with integer powers:

x ** (2 / 3)
F. Win
  • 390
  • 5
  • 17
0

Try this code here: Also, you can initialize x

x=3
x**(2/3)
Hayat
  • 1,539
  • 4
  • 18
  • 32