With mylist = ['a', 'b', 'c'] # just a list multiplicity = {0: 3, 2: 2} # Number of instances of specified elements The desired output is ['a', 'a', 'a', 'b', 'c', 'c'] What can we do with itertools or with list comprehension? Continue reading...