Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Built-Ins

https://www.hackerrank.com/challenges/zipped

Problem

This function returns a list of tuples. The ith tuple contains the ith element from each of the argument sequences or iterables.

If the argument sequences are of unequal lengths, then the returned list is truncated to the length of the shortest argument sequence.

Task

The National University conducts an examination of N students in X subjects.
Your task is to compute the average scores of each student.

Input Format

The first line contains N and X separated by a space. The next X lines contains the space separated marks obtained by students in a particular subject.

Output Format

Print the averages of all students on separate lines.

The averages must be correct up to 1 decimal place.

Sample Input 0

5 3
89 90 78 93 80
90 91 85 88 86  
91 92 83 89 90.5

Sample Output 0

90.0 
91.0 
82.0 
90.0 
85.5 

My Solution