You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
def secondLowestGrade(classList): secondLowestScore = sorted(set(_[1] for _ in classList))[1] result = sorted([_[0] for _ in classList if _[1] == secondLowestScore]) return result numberOfStudents = int(input()) classList = [] for i in range(numberOfStudents): classList.append([str(input()), float(input())]) print('\n'.join(secondLowestGrade(classList)))
Feel free to ask if you have any questions :)
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
Feel free to ask if you have any questions :)