Helo with Math.max()

Can someone please explain what math.max() does? I tried looking for answers myself, but math has never been a strong suit of mine so it didn’t really help.

3 Likes

It returns the highest number in the passed arguments:

print(math.max(5, 16, 3))
--Output
-->16
13 Likes