Python Program to find the largest number from a tuple
In this program, you will learn how to find the largest number from a tuple in Python.
tuple1 = (23, 33, 4, 5, 60, 7)
Example: How to find the largest number from a tuple in Python
tuple1 = (23, 33, 4, 5, 60, 7)
largest = 0
for i in tuple1:
if largest < i:
largest = i
print("Largest number is : ", largest)
Output:
Largest number is : 60