python to the power of -1 code example Example 1: how to power in python 2 ** 3 == 8 Example 2: power in python #The ouptut will be x ^ y x**y