We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Finding the percentage
Finding the percentage
Sort by
recency
|
3649 Discussions
|
Please Login in order to post a comment
n=int(input()) student_marks={} for i in range(n): name,*many=input().split() marks=list(map(float,many)) student_marks[name]=marks query=input() sum=0 for i in student_marks[query]: sum+=i avg=sum/len(student_marks[query]) print(avg)
Tried this approach as I'm in learning phase