CBSE Class 12 Computer Science Question 86 of 120

Review of Python Basics — Question 38

Back to all questions
38
Question

Question 33

Write a Python program to get the smallest number from a list.

Solution
numbers = eval(input("Enter the list: "))
smallest = min(numbers)
print("Smallest Number:", smallest)
Output
Enter the list: [23, 44, 36, 98, 100, 15]
Smallest Number: 15
Answer