I want to generate a list of strings shown below:
['EEG', 'EEG', 'EEG', 'EMG', 'EMG', 'EOG']
but, for example, with 32 'EEG' items and 2 'EMG' and one 'EOG'. How could I do that in one line?
I have read a StackOverflow post and I know a single repeated element can be generated with the code below:
['EEG' for _ in range(32)]
But I want a comprehensive list of all items with different frequencies. I want a flat list of different items, not a nested list of lists.