Contact: aviboots(AT)netvision.net.il
39,872 questions
51,795 answers
573 users
lst = [[] for _ in range(5)] lst[1].append(3) lst[1].append(1) lst[1].append(7) lst[3].append(9) lst[3].append(2) lst[3].append(6) print(lst) ''' run: [[], [3, 1, 7], [], [9, 2, 6], []] '''