Number of times a value is in list

Hi Everybody,

I have a simple query. How can I make a list of the number of occurrences of certain values taken from another list without changing the order. Kindly refer to below image: Many thanks in advance.

Regards,

Homar F.

Load Previous Replies
  • up
    • up

      Riccardo Majewski

      Here's a stupid graphical/geometric solution:

      EDIT: The "/100" part is not needed, I've put it there just to get a simpler graphical feedback while building up...

      2
      • up

        Anders Holden Deleuran

        The Python Counter module is super neat for this kind of stuff. Attached an example..