I am writing a script for a software "namely Abaqus" which uses an old version of python. I am having a problem with the following operation, python 3.7 gives the correct answer while python 2.x gives a bad result neglecting everything between the parenthesis.
x = 33
y = 21500 * ((0.1 * x) ** (1/3))
print(y)
As I mentioned, I tried to verify the calculation on a python 3.7 script and it worked giving the following output:
32009.31938850729
while the result appearing in the software is simply 21500
.
I am really confused. Should this be written in a different way in older python?