Finding larget and smallest number in a list in Python
One straight forward method is to iteratively check each element of the list and compare it with the previous one. Keep the desired and discarding the another one. Or we can simply use the inbuilt min and max functions.