For example the 'x'in

if ans*ans*ans != abs(x):

abs(x) where x is an argument for the function abs()

For example ...

x = -123

From the manual ...
Return the absolute value of a number. The argument may be a plain or long integer or a floating point number. If the argument is a complex number, its magnitude is returned.

See also ...

commented: Thank you very much +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.