What would be the output of the following code? If there is…
What would be the output of the following code? If there is an error, write “ERROR” def modify_data(data): value = data.get(‘x’, 0) + data.get(‘y’, 0) data.clear() data[‘result’] = value return data.get(‘z’, ‘Not found’)numbers = {‘x’: 3, ‘y’: 7, ‘z’: 5}print(modify_data(numbers))
Read Details