Question #603

What is the output of the code snippet below?
print(max(3, 0, 3.0, 0.3, 0))

Within the max() function, elements are separated by comas. Hence, the maximum elements are 3 and 3.0 . The max() function works in a way that an integer will be detected as max over a float with the same value. (thepythonguru.com/python-builtin-functions/max)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: