38. Collections Namedtuple: Hackerrank | Python Solution Explained

Published: 31 January 2024
on channel: Amir Charkhi
939
51

Hello and welcome to this tutorial on the use of Sets in Python.
#hackerrank #hackerranksolutions #pyhtonhackerrank

Task

Dr. John Wesley has a spreadsheet containing a list of student's , , and .

Your task is to help Dr. Wesley calculate the average marks of the students.


Note:
1. Columns can be in any order. IDs, marks, class and name can be written in any order in the spreadsheet.
2. Column names are ID, MARKS, CLASS and NAME. (The spelling and case type of these names won't change.)

Input Format

The first line contains an integer , the total number of students.
The second line contains the names of the columns in any order.
The next lines contains the , , and , under their respective column names.

Constraints


Output Format

Print the average marks of the list corrected to 2 decimal places.


On this page of the site you can watch the video online 38. Collections Namedtuple: Hackerrank | Python Solution Explained with a duration of hours minute second in good quality, which was uploaded by the user Amir Charkhi 31 January 2024, share the link with friends and acquaintances, this video has already been watched 939 times on youtube and it was liked by 51 viewers. Enjoy your viewing!