
March 30, 2017
3:06 p.m.
On 2017-03-30 05:18, Markus Meskanen wrote:
Hi Pythonistas,
yet again today I ended up writing:
d = [[0] * 5 for _ in range(10)]
Thoughts?
It looks like you are initializing matrices. Can you make a helper function? d = matrix(shape=(5, 10), default=0) or maybe use NumPy?