I cannot find a solution to the following problem I have a list of strings, say
base_list = ['d', 'ssa', 'aaa', 'bb']
and I want to repeat this list n
times but I need to keep the order of the original list. For example with n=2
the result should be:
final_list = ['d', 'd', 'ssa', 'ssa', 'aaa', 'aaa', 'bb', 'bb']
EDIT: Not sure if I should mark this question as duplicate or not, since it is in my opinion more generic than the possible duplicate Duplicate element in python list