[Tutor] Aaagh! Stack arrays!?! calc average

Ben Sherman bensherman at gmail.com
Tue May 1 22:30:47 CEST 2007

On 5/1/07, John Washakie <washakie at gmail.com> wrote:
> Ug,
> It still doesn't make sense due to the sum/cnt where cnt is just an
> int, and sum is a 1-dimensional array!
> I'm missing something here about working with numpy arrays...

You need to add all of  the numbers in your list - you can't just divide a
list by an int.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070501/85b43dae/attachment.html 

More information about the Tutor mailing list