Python: calculate the most and the least active customers
问题 I have a question on how to find the most and the least active customers. We were given a group of different names. For example "sam, sam, luke, luke, luke" We are asked to find the most frequent name and the least frequent name using python(spyder). These results need to be reflected in a box in wxFormBuilder . I am not sure what exactly I should do. Here is what I have so far for looking for the most active customer: def mostactive(self,parent): for name in range (self.m_listBox1.GetCount()