Average of numbers defined by user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • David Aghan
    New Member
    • Aug 2010
    • 2

    Average of numbers defined by user

    Hey,

    I'm trying to write a simple program that will give the average of numbers input by a user.
    This program has to get the user to input how many numbers as well as what the numbers are.
    I have managed to get the average done fine however having the user input how many numbers first has left me stumped.
    Any help would be greatly appreciated.
    Cheers
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    How did you get the numbers? Why can't you get the number of numbers using a similar method? raw_input() (input() for Python 3.x) should work fine for this purpose.

    Comment

    Working...