4 ms·
I'm very aware of what you mentioned but...all I "wanted" in this case is a visual separator in my terminal when I'm working with lots of output. I don't care w
by euphemize 12y ago
I'm very aware of what you mentioned but...all I "wanted" in this case is a visual separator in my terminal when I'm working with lots of output. I don't care whether each "* " refers to the same object, I just want a line :)
With that being said, if I want to merge two lists and apply an operation on each, I don't see what's the issue with:
In [1]: a = [1,2,3]
In [2]: b = [5,6,7]
In [3]: c = a+b
In [4]: c
Out[4]: [1, 2, 3, 5, 6, 7]
In [5]: d = [x*4 for x in c]
Out[6]: [4, 8, 12, 20, 24, 28]