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
|
3895 Discussions
|
Please Login in order to post a comment
here is Student Marksheet program code in Python
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
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() i=0 l=len(student_marks[query_name]) s=sum(student_marks[query_name])/l print(f"{s:.2f}")
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() total = sum(student_marks[query_name]) avg = total/3 print(f"{avg:.2f}")