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” data = { ‘A’: {‘age’: 20, ‘city’: ‘Paris’}, ‘B’: {‘age’: 30, ‘city’: ‘Rome’}, ‘C’: {‘age’: 40, ‘city’: ‘Berlin’}}total = 0for key in data: total += dataresult = total / len(data)print(result)