Perhaps this was asked before in which case I will remove this question but I have two lists:
occurence_list = [1, 2, 3, 4, 5]
value_list = [10, 20, 30, 40, 50]
And I want each value to appear the same number of times as the value of the same index from the other list:
result = [10, 20, 20, 30, 30, 30, 40, 40, 40, 40, 50, 50, 50, 50, 50]
How can this be done?