cores_multicast = [[] for i in xrange(64)] temp_list = [0, 1] temp_list2 = [0, 3] cores_multicast[0].append(temp_list) cores_multicast[0].append(temp_list2) print cores_multicast print cores_multicast[0] print cores_multicast[0][0] print cores_multicast[0][0][0] print cores_multicast[0][0][1]
>>> ================================ RESTART ================================ >>> [[[0, 1], [0, 3]], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []] [[0, 1], [0, 3]] [0, 1] 0 1