python list duplicate each element code example
Example: python duplicate list elements
def duplicate_list_elements(_list : list):
duplicated_list = []
for element in _list:
duplicated_list.append(element)
duplicated_list.append(element)
return duplicated_list