May-16-2019, 08:48 AM
It's probably not the answer you looking for, but "the way to fill zero's" in case of iterables is:
>>> from itertools import zip_longest >>> a = [1, 2, 3] >>> b = [10, 20, 30, 40] >>> list(zip_longest(a, b, fillvalue=0)) [(1, 10), (2, 20), (3, 30), (0, 40)]
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.