traits c++

The solution for “traits c++” can be found here. The following code will assist you in solving the problem.

# Nested Lists in Python – Hacker Rank Solution
# python2 solution
score_list = []; # do not forget to declare a list
for _ in range(int(raw_input())):
name = raw_input()
score = float(raw_input())

# Nested Lists in Python – Hacker Rank Solution START
score_list.append([name, score])
second_highest = sorted(set([score for name, score in score_list]))[1]
print(‘\n’.join(sorted([name for name, score in score_list if score == second_highest])))
# Nested Lists in Python – Hacker Rank Solution END

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in