text_html_output_1.png
from json  import loads , dumps

file = open('/kaggle/input/swiggy-restaurants-dataset/data.json', 'r')
data = file.read()
file.close()
js = loads(data)

cost = []
for i in js['Abohar']['restaurants'].keys():
    cost.append(int(js['Abohar']['restaurants'][i]['cost'].split(' ')[-1]))
avg_cost = round(sum(cost) / len(cost), 2)
print('Average cost of eating outside in abohar is : Rs. ' + str(avg_cost))