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
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
;, 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
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!
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:/
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
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