def iocsvex (input file,"r"): 
        file = open(„Input file”)
        uczniowie []
        for line in file ():
            line = line.split (",") 
            grades = line[2:]
            grades []
            for grade in grades:
                grades.append(int(grade))
                people = { "imie": line[1], "nazwisko": line[0], "srednia": sum(grades)/len(grades)}
                peoples.append(people)
                return peoples 
                
                print(iocsvex())
