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