python programming help

2004-12-06 Thread Alfred Canoy
Hello, Thanks for the input:-) I made a mean, median & mode program. I'm trying to figure how can I store this program in another file and opens the file to display. Any idea what to add in my source code. Thanks!     # compute the Mean, Median & Mode of a list of numbers:   sum = 0.0   prin

Programming help

2004-12-05 Thread Alfred Canoy
Hello,   I'm stuck in the end of my source code. I'm trying to print all the numbers. How can I print all the list of numbers that I selected?      Source code:# compute the Mean, Median & Mode of a list of numbers:sum = 0.0print 'This program will take several numbers then average them'cou

Re: [Python-Help] Programming help

2004-12-05 Thread Alfred Canoy
;, current_count,":",number sum = sum + number print " [x,...,x] ?" Al _ _ _ _ Alfred Canoy Agana, Guam Pacific time [EMAIL PROTECTED] - Original Message - From: "Matthew Dixon Cowles" <[EMAIL PROTECTED]> To: "Alfred Canoy" <[EMAIL PROTE

Re: Python-Help ( Mean,Median & Mode)

2004-12-05 Thread Alfred Canoy
eback (most recent call last): File "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript exec codeObject in __main__.__dict__ File "A:\SLP5.py", line 23, in ? for x in number: TypeError: iteration over non-sequence Thank you much!

Re: [Python-Help] (fwd)

2004-12-04 Thread Alfred Canoy
r 0 to exit the loop' while number != 0: number = input ('Enter a number: ') count = count + 1 sum = sum + number count = count -1 print ' The average is:', sum/count Greatly appreciates it! Al _ _ _ _ Alfred Canoy Agana, Guam Pacific time [EMAIL PROTECTED] -- http:/

problem solving help

2004-12-04 Thread Alfred Canoy
Dear Sir/Madam, Hello! I'm just new to programming and would like to ask for help.. Can you please give me clue how I should start solving the following problem below? Write a program that allows you to do the following five operations: Prompt the user to input a list of numbe

Programming help

2004-12-04 Thread Alfred Canoy
Dear Sir/Madam, Hello! I'm just new to programming and would like to ask for help.. Can you please give me clue how I should start solving the following problem below? -Build a module that contains three functions that do the following: Compute the average of a list of number