Python TypeError: unsupported operand type(s) for ^: float and int

Python TypeError: unsupported operand type(s) for ^: float and int

Pythons exponentiation operator is **, not ^. ^ is bitwise XOR.

f=math.sqrt(1+(6*x+4)**2)

Python TypeError: unsupported operand type(s) for ^: float and int

Leave a Reply

Your email address will not be published.