import math floor is not defined in python code example Example: floor function in python import math print(math.floor(5.3)) output = 5