Computer Science
Write a program to calculate the minimum element of a given list of numbers.
Python
Python List Manipulation
5 Likes
Answer
l = eval(input("Enter a list: "))
m = min(l)
print("Minimum element in the list:", m)
Output
Enter a list: [1, 4, 65, 34, 23]
Minimum element in the list: 1
Answered By
3 Likes
Related Questions
What is the difference between insert() and append() methods of a list?
Write a program to calculate the mean of a given list of numbers.
Write a code to calculate and display total marks and percentage of a student from a given list storing the marks of a student.
Write a program to multiply an element by 2 if it is an odd index for a given list containing both numbers and strings.