def main(): "Main function of scripte." help_func() while True: cu_sel = raw_input("Please your choise 1/2/x will be fine") if cu_sel == '1': mylist = exercise8.create_five_num_list() res = exercise8.sum_number_list(mylist) print mylist print "sum is %d" % res elif cu_sel == '2': mylist = exercise8.create_five_num_list() res = exercise9.avg_number_list(mylist) print mylist print "avg is %f" % res elif cu_sel == 'x': break; else: help_func() return
def main(): "main function of script" mylist = exercise8.create_five_num_list() print mylist print avg_number_list(mylist)