get the maximum element of a set python code example Example: how to get maximum value of number in python float('inf')