
def pie_chart(data):    
  datasum=sum(data[i] for i in data)
  for i in data:
    data[i]= round((data[i]/datasum)*360,1)   
  return data


40e327cb284d551dc27cdd18a8bf1289bb0ffe87
<mask token>

def pie_chart(data):
    datasum = sum(data[i] for i in data)
    for i in data:
        data[i] = round(data[i] / datasum * 360, 1)
    return data


def pie_chart(data):    
  datasum=sum(data[i] for i in data)
  for i in data:
    data[i]= round((data[i]/datasum)*360,1)   
  return data

