Coders Packet

Finding The Runner Up Score Using Python

By Rajitha Gondipalli

In this program, we will find the runner-up score among the scores in an array using Python.

Runner up score :

Runner-up score is the score that is placed second in any competition. For example, the scores given are[a b w c r], where w is the winning score and r is the runner-up score. We will get "r" as the output.

We will find the runner-up score using python. First, the scores are given in an array.

 

Example:

Enter the size of an array

4

Input    : [13 4 6 10 2]

Output: 10

 

 

Enter the size of an array

4

Input    : [1 4 6 15 23]

Output: 15

 

 

Enter the size of an array

3

Input    : [4 6 10 2]

Output: 6

Download project

Reviews Report

Submitted by Rajitha Gondipalli (Rajitha)

Download packets of source code on Coders Packet