students records

num_students = int(raw_input()) student_info = {} student_data = [] for i in range(0,num_students): student_name = raw_input() student_info[student_name] = {} for entry in student_data: student_info[student_name][entry] = int(raw_input(entry)) name = raw_input() print sum(student_info[student_name])

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.