Maximum value in a tuple

EasyTuple Programs · 2 of 70

Write a Python program to find the maximum value in a tuple.

Advertisement
Input
(41, 15, 69, 55)
Output
69

Approach

  1. max() works on any iterable.

Solution

Python
print(max((41, 15, 69, 55)))
Output
69
Advertisement

Learn the concept

New to this topic? Read the lesson, then come back.

More tuple programs

← All 70 Tuple Programs