Python - Get Runner-Up Score (Second Highest) in a List using While Loop

Опубликовано: 09 Апрель 2020
на канале: Manish Mahour
292
4

In this video, we will perform a task on List datatype. We will also see how we can use while loop statement.

Given the participants' score sheet for University Sports Day, you are required to find the runner-up score. You are given n scores. Store them in a list and find the score of the runner-up.

Sample Input 0
5
2 3 6 6 5
Sample Output 0
5