In this program, we will take a user input as a list. Find the max min and sum of the list using in-built functions. Print the final output with the help of the below-given steps.
Max Min and Sum of the list elements:
Steps to solve the program
- Take a list as input.
- Find the minimum element from the list using min().
- Find the maximum element from the list using max().
- Find the sum of the list using sum().
- Print the output.
Output :
Related Articles
Python program to check whether a list contains a sublist.
Python program to generate all sublists with 5 or more elements in it from the given list.
Python program to find the second largest number from the list.
Python program to find the second smallest number from the list.
Python program to merge all elements of the list in a single entity using a special character.
Python program to get the difference between two lists.