Python TypeError: unsupported operand type(s) for ^: ‘float’ and ‘int’ June 1, 2023 by Tarik Python’s exponentiation operator is **, not ^. ^ is bitwise XOR. f=math.sqrt(1+(6*x+4)**2)