Coders Packet

PRINTING THE NAMES OF STUDENT(S) HAVING SECOND LOWEST GRADE USING PYTHON

By Akula Arjun

In this python project, we print the name(s) and second-lowest grade of students. If there are multiple students, we order their names alphabetically and print each one on a new line.

Second lowest score :

                               Second lowest score is the score that is preceding the least score and is less than the highest score. For example, if the scores are given as 30,70,50,20 here the highest score is 70, the least score is 20 and the second-lowest score is 30. In this project, we will give the names along with grades for each student in a class of N students and we store them in a nested list and print the name(s) of the student(s) having the second-lowest grade using python. If there is more than one student having the same score then we print their names alphabetically.

 

Example :

Input   : 4

            Harry

            37.21

            Berry

            37.21

            Tina  

            37.2

            Harsh  

            39

 

Output : Berry

             Harry

 

 

Input   :3

            ram

            5

            raj

            6

            jai

             7

Output : raj

 

 

Input   :4

            bina

            10

            tina

            6

            lilly

             7

            dolly

            11

Output :  lilly

 

 

 

Download project

Reviews Report

Submitted by Akula Arjun (Arjun)

Download packets of source code on Coders Packet