What will be the output of the following Python code?

ICSE Class 10 Robotics & AI PYQ · 2026 Improvement · Section A

2(x)1 Mark · 2026 · Section A · 2026 Improvement

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).

  1. The max(sal) function returns the largest value in the tuple, which is 11000.
  2. The min(sal) function returns the smallest value in the tuple, which is 1700.

Hence, the output is:

11000
1700
← Previous questionNext question →

Browse the free Robotics & AI sample bank