import random import sys size = 100 if len(sys.argv) > 1: size = int(sys.argv[1]) data = [] def fill(): for i in range(size): data_row = [] for i in range(size): data_row.append(random.random()) data.append(data_row) print(data)