Subj : Re: any function to handle this kind of counting? To : comp.programming From : mensanator@aol.com Date : Fri Jul 29 2005 03:42 pm Rob Thorpe wrote: > mensanator@aol.com wrote: > > Ross wrote: > > > Dear all, > > > and then i want to count, say, for "1", there are two A's, one E, ... > > > > > > it seems that a for loop can do the job but as we don't know how many > > > instances there are, i.e. don't know A, C, E and then what will occur in > > > this corresponding vector, is there any function which is devoted to handle > > > this kind of counting problem? thx!! > > > > Something like this, perhaps? > > You don't mention what language this is, is it Python? Yes, sorry about that. I thought I was in comp.lang.python. .