Q:

What will be the output of the following Python function?

0

What will be the output of the following Python function?

min(max(False,-3,-4), 2,7)

The function max() is being used to find the maximum value from among -3, -4 and false. Since false amounts to the value zero, hence we are left with min(0, 2, 7) Hence the output is 0 (false).

 


  1. 2
  2. False
  3. -4

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

False

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Python Multiple Choice Questions And Answers

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following Python co... >>
<< The function pow(x,y,z) is evaluated as:...