How do I right align my answers when I input the first, second and last number, as well as the sum and the average.
#create function
def list_sum(num_list):
#calculate and print out the sum of numbers
the_sum = 0
for i in num_list:
the_sum = the_sum + i
return the_sum
#accept 3 numbers and store them in variables
input_1 = float(raw_input("Input a number: "))
input_2 = float(raw_input("Input a second number: "))
input_3 = float(raw_input("Input the last number: "))
#take list of inputs
list_of_inputs = [input_1, input_2, input_3]
#calculate and print out the sum of numbers
sum_of_input = list_sum(list_of_inputs)
print("The sum: {:.2f}".format(sum_of_input))
#calculate and print out the average of the numbers
the_average = (sum_of_input)/(len(list_of_inputs))
print("The average: {:.2f}".format(the_average))
#calculate and print out the percent of the total that each number represents
for input_in_list in list_of_inputs:
percent_total = input_in_list/sum_of_input
print("The percent of the total of each number: {:.2f}".format(percent_total))