basicData Types1 [HackerRank] 04. Nested List student = [] if __name__ == '__main__': for _ in range(int(input())): name = input() score = float(input()) student.append((name, score)) # set을 통해 중복 원소 제거 second_lowest = sorted(set([score for name, score in student]))[1] # join method is a string method which returns a string concatenated with the elements of an iterable print('\n'.join(sorted([name for name, score in student if score == seco.. 2020. 3. 9. 이전 1 다음