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