I have the code finished up in fact it is entirely done but I just need help at the end of my function for it to return a rounded float.
def average_area(glacier_list):
average=0
Sum=0
for row in glacier_list:
Sum += float(row[9])
average = Sum / len(glacier_list)
return average
def main():
print('Average Area:, '(average_area(csv_reader(file))))
if __name__ == '__main__':
main()
When the code runs through I get 'Average Area: 2.0335740566037788' but I need to get 'Average Area: 2.03'