Find Minimum in List

Beginner

Ahoy, budding coder! Imagine you're on a treasure hunt, and you have a map in the form of a list showing all the treasures' values. Your task is to find the smallest treasure value hidden in the magical list of numbers!

Your mission is to write a function called find_min_in_list that will receive a list of numbers as input, and your goal is to find the smallest number in the list. Sounds fun, right?

Here's an example to get you started:

find_min_in_list([10, 4, 5, 2, 8]) # returns 2

And another example with a different list:

find_min_in_list([7, 15, -3, 9, 5]) # returns -3

Remember, the numbers can be positive, negative, or even zero. Your job is to always return the smallest one!

Are you ready to dive in and find the smallest treasure? Let's code!

Geek
Inputs

Arg 1:

[10,4,5,2,8]
Expected Output
2
Actual Output