python power math code example
Example 1: python floor
import math
x = 3.86356
math.floor(x)
#Returns: 3
math.ceil(x)
#Returns: 4
Example 2: power function python
# There are two ways of computing x^y in python:
>>> 3 ** 4
81
>>> pow(3,4)
81
Example 3: power in python
#The ouptut will be x ^ y
x**y