Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have a list of students' names and their grades (in exams taken in PTSL course) in the form of word-colon- number (1.e. 'Student_name:Grade'). You

image text in transcribed
You have a list of students' names and their grades (in exams taken in PTSL course) in the form of word-colon- number (1.e. 'Student_name:Grade'). You need to complete the following Python function which will find the sum of all grades of each student and will return a dictionary where the key is the student name and its value is the total sum For example, if the list is: L'Ahmad:15', 'All 20', 'Sara:16', 'Ahmad:12', 'A:30) The function will return the following dictionary: {'Ahmad': 27. 'All':50, 'Sara': 16 def checkStudentsum(std_list): 2 A B = =

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions