If you need to do any actual work with data then printing is not that useful.
More common would be to built data structure and print it out if needed:
If work is getting more serious then numpy has built-in method:
More common would be to built data structure and print it out if needed:
>>> import random >>> table = [[random.random() for j in range(10)] for i in range(50)] # will create 2D matrix 50 rows with 10 elements >>> for row in table: ... print(*row, sep=' ') # will print row by row, row values separated by space
If work is getting more serious then numpy has built-in method:
>>> import numpy as np >>> np.random.rand(50,10)
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.