Python Program to find top two maximum number in array

In this tutorial, you will learn how to write Python program to find the first top two largest/maximum element in python.

To find two maximum number in python, first we will sort our array in ascending order (you can also implement it by sorting in descending order).

Now select last two distinct element which will be you top two maximum element.

Read This : Java program to find top two maximum number in array.

Python Program to find two largest number in an array

Output