Python: Find the maximum and minimum values in a given list of tuples using lambda function
51. Max/Min Tuple in List Lambda
Write a Python program to find the maximum and minimum values in a given list of tuples using the lambda function.
Sample Solution:
Python Code :
Sample Output:
Original list with tuples: [('V', 62), ('VI', 68), ('VII', 72), ('VIII', 70), ('IX', 74), ('X', 65)] Maximum and minimum values of the said list of tuples: (74, 62)
For more Practice: Solve these Related Problems:
- Write a Python program to find the tuple with the maximum sum of its elements using lambda.
- Write a Python program to find the tuple with the minimum product of its elements using lambda.
- Write a Python program to identify the tuple with the maximum difference between its elements using lambda.
- Write a Python program to find both the tuple with the longest first element and the tuple with the shortest last element using lambda.
Go to:
Previous: Write a Python program to remove specific words from a given list using lambda.
Next: Write a Python program to remove None value from a given list using lambda function.Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.