how to use the min function in python code example Example: min() python x = min(1, 2) #Sets the value of x to 1