<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Find the Mean/Average of a Number List in Python</title>
	<atom:link href="http://code.hammerpig.com/find-meanaverage-number-list-python.html/feed" rel="self" type="application/rss+xml" />
	<link>http://code.hammerpig.com/find-meanaverage-number-list-python.html</link>
	<description>Tips and short tutorials on various programming technologies</description>
	<lastBuildDate>Fri, 09 Jul 2010 05:34:19 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: pk</title>
		<link>http://code.hammerpig.com/find-meanaverage-number-list-python.html/comment-page-1#comment-446</link>
		<dc:creator>pk</dc:creator>
		<pubDate>Sat, 15 May 2010 02:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=513#comment-446</guid>
		<description>oh wow. that&#039;s a shocker</description>
		<content:encoded><![CDATA[<p>oh wow. that&#8217;s a shocker</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: not division by zero yet</title>
		<link>http://code.hammerpig.com/find-meanaverage-number-list-python.html/comment-page-1#comment-443</link>
		<dc:creator>not division by zero yet</dc:creator>
		<pubDate>Thu, 13 May 2010 15:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=513#comment-443</guid>
		<description>Your function has input argument numberList but refers to it as floatNums (a variable that is defined in another post therefore outside the scope of your function). There will never be a division by zero because the interpreter will not be able to proceed to the division.</description>
		<content:encoded><![CDATA[<p>Your function has input argument numberList but refers to it as floatNums (a variable that is defined in another post therefore outside the scope of your function). There will never be a division by zero because the interpreter will not be able to proceed to the division.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pk</title>
		<link>http://code.hammerpig.com/find-meanaverage-number-list-python.html/comment-page-1#comment-343</link>
		<dc:creator>pk</dc:creator>
		<pubDate>Fri, 05 Feb 2010 16:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=513#comment-343</guid>
		<description>hah, division by zero. how embarrasing.</description>
		<content:encoded><![CDATA[<p>hah, division by zero. how embarrasing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dae</title>
		<link>http://code.hammerpig.com/find-meanaverage-number-list-python.html/comment-page-1#comment-342</link>
		<dc:creator>dae</dc:creator>
		<pubDate>Fri, 05 Feb 2010 02:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=513#comment-342</guid>
		<description>pk is right, python has a built in sum() function, although his code example is sloppy.
def mean(nums):
   if len(nums):
      return float( sum(nums) / len(nums))
   else:
      return 0.0</description>
		<content:encoded><![CDATA[<p>pk is right, python has a built in sum() function, although his code example is sloppy.<br />
def mean(nums):<br />
   if len(nums):<br />
      return float( sum(nums) / len(nums))<br />
   else:<br />
      return 0.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pk</title>
		<link>http://code.hammerpig.com/find-meanaverage-number-list-python.html/comment-page-1#comment-227</link>
		<dc:creator>pk</dc:creator>
		<pubDate>Fri, 01 May 2009 13:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=513#comment-227</guid>
		<description>couldnt you just do

def mean(numberList):
    return float(sum(floatNums)) / len(numberList)</description>
		<content:encoded><![CDATA[<p>couldnt you just do</p>
<p>def mean(numberList):<br />
    return float(sum(floatNums)) / len(numberList)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
