I want to declare an Array and all items present in the ListBox Should Be deleted irrespective of the Group name present in the ListBox. can any body help me coding ...
data = [] for i in range(1, 6): data.append(i) print data --output:-- [1, 2, 3, 4, 5] data = [] for i in range(1, 6): sub_list = [] sub_list.append("apple") data.append(sub_list) print data --output:-- [['apple'], ['apple'], ['apple'], ['apple'], ...
self.grid=[] ind1=0 for i in range(self.size): self.grid.append([]) ind2=0 for j in range(self.size): self.grid[ind1].append([]) for k in range(self.size): ...