Find Smallest in List
Beginner
Welcome to the challenge of finding the smallest number in a list! Let's embark on an adventure to help a young farmer find the tiniest egg laid by his chickens in a given list of egg weights. 🐣 Each egg has a weight, and your goal is to identify which one is the lightest. You will write a function that takes a list of numbers representing these weights and returns the smallest one.
Here's how the function should behave:
find_smallest([4, 1, 7, 3, 2, 5]) # Returns: 1 find_smallest([10, 20, 5, 50, 30]) # Returns: 5 find_smallest([100]) # Returns: 100
Are you ready to help our farmer? Let's crack this puzzle!
Inputs
Arg 1:
[4,1,7,3,2,5]Expected Output
1Actual Output