Nov-30-2018, 07:27 PM
Not sure if I understand. Tried the following but it did not work. Sorry still new to python.
my_list = [2,3,4,5] lst = [] sub_lst = [] for i in my_list: sub_lst.append(i) for j in range(0,4): lst.append(sub_lst) print(lst)