@@ -0,0 +1,743 @@
+__author__ = 'lg'%0A%0A%0Adef sum_num(li):%0A    sum1 = 0%0A    for i in li:%0A        sum1 += i%0A    print('the sum is:%25d' %25 sum1)%0A%0A%0Adef aver_num(li):%0A    sum1 = 0%0A    for i in li:%0A        sum1 += i%0A    aver = float(sum1)/len(li)%0A    print('the average is:%25.2f' %25 aver)%0A%0A%0Adef main():%0A    str1 = '''%0A        (1)get sum of the 5 numbers%0A        (2)get average of the 5 numbers%0A        (X)exit'''%0A    list1 = %5B2, 3, 4, 5, 5%5D%0A    print(str1)%0A    in_put = -1%0A    while True:%0A        in_put = input('slect the number:')%0A        if in_put == '1':%0A            sum_num(list1)%0A        elif in_put == '2':%0A            aver_num(list1)%0A        elif in_put == 'X':%0A            break%0A        else:%0A            print('input error')%0A%0Aif __name__ == '__main__':%0A    main()%0A

add NumOperator.py