# Using above first method to create a # 2D array rows, cols = (5, 5) arr = [[0]*cols]*rows print(arr)