Q1
Which built-in function is used to find the smallest item in an iterable?
A.
min()
AnswerB.
smallest()
C.
minimum()
D.
small()
Answer: Option A
Solution
Answer: Option A
Solution:
The correct answer is Option A: min().The min() function is used to find the smallest item in an iterable, such as a list, tuple, or set.
It takes an iterable as an argument and returns the smallest item.
For example:
numbers = [5, 2, 8, 1, 6]
smallest_number = min(numbers)
print(smallest_number) # Output: 1