CBSE Class 12 Computer Science Question 69 of 120

Review of Python Basics — Question 21

Back to all questions
21
Question

Question 16

Write a program to calculate the minimum element 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