Question: Smallest Element [ Difficulty: Easy ] You have to find and print the smallest element of the list given as input. - - - -

Smallest Element
[Difficulty: Easy]
You have to find and print the smallest element of the list given as input.
----------------------------------------------------------------------
Input:
A non-empty list of integers.
Output:
The smallest integer of the input list.
----------------------------------------------------------------------
Sample input:
[2,-3,0,7,21]
Sample output:
-3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!