Question: please use python 3 for the program Suppose we have some data, named Data, of the following form: Data= [ ['Alice', 100). f'Bob', 117]. [Cathy',


please use python 3 for the program
Suppose we have some data, named Data, of the following form: Data= [ ['Alice', 100). f'Bob', 117]. [Cathy', 1163], ['David', 12). ['Ethel', 89). ['Fred', 200), ['Gloria', 891 ['Henry', 8] So, each item is a list that tells us a name, and some number of points the person has. Suppose we have data, call Updates in a similar form, say Updates = [[Alice', 50], ['Bob', -10], ['Ethel', 75). [Bob', 100)] For each item in Updates, we want to locate that person in Data, and add the points in the Update item to that person's running score. Notice there may be more that one item with the same name in updates. For simplicity, we will assume every name in Updates is already in the data. So, in the example above, the final value of Data will be Data= [ ['Alice', 150], ['Bob', 207] ['Cathy', 1163). ['David', 12]. ['Ethel', 164], I'Fred', 200]. 'Gloria', 89], ['Henry', 8] Write code to do this. Make it in the form of a function that accepts Data and Updates. It will not return a value. You may use my find function for lists, contained in the module findinList, which is attached. def find(llist, *vars): try: i = llist.index(*vars) 10 11 12 13 14 15 16 17 18 19 20 except ValueError: i = -1 return
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
