if __name__ == '__main__': n = 10 a = [[] for x in range(n)] print(a) # [[], [], [], [], [], [], [], [], [], []]