The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #603
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)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) March 16, 2021
print(max(3, 0, 3.0, 0.3, 0))
3
3.0
0
0.0
0.3
👇 Comment the answer, like and retweet! #python
Question difficulty: 🔵🔵🔵🔵🔵
Similar questions: