Computer Science
Write a Python program to get the smallest number from a list.
Python
Python List Manipulation
3 Likes
Answer
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
Answered By
1 Like
Related Questions
Write a Python program to change a given string to a new string where the first and last characters have been exchanged.
Write a Python program to multiply all the items in a list.
Write a Python program to append a list to the second list.
Write a Python program to generate and print a list of first and last 5 elements where the values are square of numbers between 1 and 30 (both included).