max(a, b) works for all types that implement the operator <. It returns b if b is less then a, else a.
max(list(A) alist) compares all elements of the list alist and returns the maximum element according to <. alist must not be emtpy or an exception will be raised.
