can some one help me with my code. thanks

2012-01-20 Thread Tamanna Sultana
can some one help me?? > I would like to create a function that, given a bin, which is a list > (example below), generates averages for the numbers separated by a > string 'end'. I am expecting to have 4 averages from the above bin, > since there are 4 sets of numbers separated by 4 'end' strings

Re: can some one help me with my code. thanks

2012-01-23 Thread Tamanna Sultana
On Jan 20, 11:03 pm, Chris Angelico wrote: > On Sat, Jan 21, 2012 at 1:23 PM, Steven D'Aprano > > wrote: > > On Fri, 20 Jan 2012 16:21:30 -0800, Rick Johnson wrote: > >> Your variable names need a bit more thought > > >>> def average(bin): > > >> What is a "bin"? Maybe you shoulc have called this

Re: can some one help me with my code. thanks

2012-01-23 Thread Tamanna Sultana
On Jan 20, 9:23 pm, Steven D'Aprano wrote: > On Fri, 20 Jan 2012 16:21:30 -0800, Rick Johnson wrote: > > On Jan 20, 12:49 pm, Tamanna Sultana wrote: > >> > If you can give me some lead to fix the code I wrote below that will > >> > be great: > > &