how to get maximum value on basis of length in python code example Example: how to get maximum value of number in python float('inf')