Python-loops 2(nested loop)

the logic behind the statement “max(x+1,y+1,n-x,n-y)”

It will return the max element from x+1,y+1,n-x,n-y
In python we can use max function to get the maximum value out of given some values such as for example if we have max(1,3,4,2,7,9,8,5,6) it will return value 9