3 comments:

  1. mylist=[1,43,2,54,3,5,3,5,34,5,43]
    t=len(mylist)
    r=0
    for i in range(1,t):
    r=r+mylist[i]
    print r
    print r/t

    197
    17

    ReplyDelete
  2. mylist=[1,2,3,4,5,6,8]
    a=len(mylist)
    b=0
    c=0
    for i in range(1,a):
    b=b+mylist[i]
    c=b/a
    print b
    print c

    ReplyDelete
  3. mylist=[1,3,5,7,9,11,13,15,17,19]
    A=len(mylist)
    B=0
    for i in range(1,A):
    B=B+mylist
    print B
    print B/A

    99
    9

    ReplyDelete