Challenge: Find Minimum Value in List

Given a list of size ‘n,’ can you find the minimum value in the list? Implement your solution in Python and see if your output matches the expected output.

Problem Statement

Implement a function find_minimum(lst) which finds the smallest number in the given list.

Input:

A list of integers

Output:

The smallest number in the list

Sample Input

arr = [9,2,3,6]

Sample Output

2

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.