Calculating average

Discussion in 'Python' started by s4189332, Mar 18, 2009.

  1. s4189332

    s4189332

    Joined:
    Mar 18, 2009
    Messages:
    1
    Likes Received:
    0
    How would I write a procedure mean that takes as input a list of numbers (of any length) and returns the mean, using the built in functions sum and len.
    Thanks!
     
    s4189332, Mar 18, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steven

    AVERAGE SQL error... help please

    Steven, Oct 16, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,586
    Richard K Bethell
    Oct 16, 2003
  2. Meena Lalwani
    Replies:
    1
    Views:
    1,286
    Kevin Spencer
    Aug 31, 2005
  3. Bob
    Replies:
    12
    Views:
    1,290
    Greg N.
    Jan 13, 2006
  4. Cliff Wells

    Re: Please help - get average

    Cliff Wells, Oct 27, 2004, in forum: Python
    Replies:
    3
    Views:
    423
    Josiah Carlson
    Oct 27, 2004
  5. Frohnhofer, James

    RE: Please help - get average

    Frohnhofer, James, Oct 27, 2004, in forum: Python
    Replies:
    1
    Views:
    545
    Robin Becker
    Oct 27, 2004
  6. GregM

    Calculating average time

    GregM, Jul 7, 2005, in forum: Python
    Replies:
    3
    Views:
    4,850
    Peter Tillotson
    Jul 8, 2005
  7. ashmangat@yahoo.com

    problem finding the average

    ashmangat@yahoo.com, Nov 22, 2005, in forum: C++
    Replies:
    2
    Views:
    435
    \/Gogineni\/
    Nov 22, 2005
  8. Mike D

    calculating average from an array

    Mike D, Nov 19, 2004, in forum: ASP General
    Replies:
    3
    Views:
    201
    dlbjr
    Nov 19, 2004
Loading...