what is max function ??
for x in range(n):
for y in range(n):
print(max(x+1,y+1,n-x,n-y),end’ ')
can anyone please explainme this code ??
Nested for loop
Hey, max function just returns the maximum of given inputs. For eg. output of max(1, 5) will be 5.