Calculating average

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

  1. s4189332

    s4189332

    Joined:
    Mar 18, 2009
    Messages:
    1
    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. Advertising

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,412
    Richard K Bethell
    Oct 16, 2003
  2. Meena Lalwani
    Replies:
    1
    Views:
    1,131
    Kevin Spencer
    Aug 31, 2005
  3. Bob
    Replies:
    12
    Views:
    1,102
    Greg N.
    Jan 13, 2006
  4. GregM

    Calculating average time

    GregM, Jul 7, 2005, in forum: Python
    Replies:
    3
    Views:
    4,619
    Peter Tillotson
    Jul 8, 2005
  5. Mike D

    calculating average from an array

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

Share This Page