=====Problem Statement=====
The provided code stub will read in a dictionary containing key/value pairs of name:[marks] for a list of students. Print the average of the marks array for the student name provided, showing 2 places after the decimal.

=====Example=====
marks key:value pairs are
'alpha': [20,30,40]
'beta': [30,50,70]
query_name = 'beta'
The query_name is 'beta'. beta's average score is (30+50+70)/3 = 50

=====Input Format=====
The first line contains the integer n, the number of students' records. The next n lines contain the names and marks obtained by a student, each value separated by a space. The final line contains query_name, the name of a student to query.

=====Constraints=====
2≤n≤10
0≤marks[i]≤100
length of marks arrays = 3

=====Output Format=====
Print one line: The average of the marks obtained by the particular student correct to 2 decimal places.

Difficulty: introductory

Starter code:

if __name__ == '__main__':
    n = int(input())
    student_marks = {}
    for _ in range(n):
        name, *line = input().split()
        scores = list(map(float, line))
        student_marks[name] = scores
    query_name = input()

Solutions:
# Enter your code here. Read input from STDIN. Print output to STDOUT
n=int(input())
ar={}
for i in range(0,n):
    s=input()
    ss=s.split(" ")
    n=ss[0]
    m1=float(ss[1])
    m2=float(ss[2])
    m3=float(ss[3])
    m_avg=(m1+m2+m3)/3.0
    ar[n]="%.2f" % m_avg
s_name=input()
print((ar[s_name]))


def get_avg(marks, student):
    return (sum(marks[student])/len(marks[student]))

def __starting_point():
    n = int(input())
    student_marks = {}
    for _ in range(n):
        name, *line = input().split()
        scores = list(map(float, line))
        student_marks[name] = scores
    query_name = input()
    print(("{:.2f}".format(get_avg(student_marks, query_name))))

__starting_point()