Check sibling questions

Write a python program to find the sum of largest  elements of three tuples tuple1, tuple2,tuple3. 


The program to find the sum of largest elements of three tuples is:

# Find the largest element of each tuple using the max() function

max1 = max(tuple1)

max2 = max(tuple2)

max3 = max(tuple3)


# Calculate the sum of the largest elements using the + operator

sum = max1 + max2 + max3


# Print the sum using the print() function

print( "The sum of the largest elements of the three tuples is" , sum)

Learn in your speed, with individual attention - Teachoo Maths 1-on-1 Class

Ask a doubt
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 13 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.