how to calculate percentage in python,print('The total is ' + str(total) + ' and the average is ' + str(average))