2(x)
What will be the output of the following Python code?
sal = (7000, 4000, 11000, 1700) print(max(sal)) print(min(sal))
Show SolutionHide Solution↓
11000
1700
The tuple sal contains the values (7000, 4000, 11000, 1700).
- The
max(sal)function returns the largest value in the tuple, which is11000. - The
min(sal)function returns the smallest value in the tuple, which is1700.
Hence, the output is:
11000
1700