Question: I am in heed of help in this python program, the program is supposed to read a string that has numbers and are separated by

I am in heed of help in this python program, the program is supposed to read a string that has numbers and are separated by commas. The goal is for it to turn the string into integers and add the sum of the total. and return the value. Here is what I have so far.

I am in heed of help in this python program, the program

def sum_csv_string(csv_string): sum_of_list-0 sum_list- for char in range len(csv string)): if char- ',": sum_list.append csv_string[char]) for i in sum list: sum_of_list i return sum_of_list

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!