CBSE Class 11 Computer Science Question 64 of 82

Lists in Python — Question 29

Back to all questions
29
Question

Question 24

Write a program to calculate the minimum elements of a given list of numbers.

Solution
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
Answer