in reply to Re^4: Merge 2 strings like a zip [unzip()]
in thread Merge 2 strings like a zip
I was aware of what "print for..." does (though I didn't realise some of the finer points you've mentioned), but I asked because I thought your code also worked without the 'for'. I now notice that the output without the 'for' has no newline between the returned arguments, i.e.:
ABCDEFGHIJabcde
which I assume is because it's just printing the 2 arguments (like a list) together.
All that makes sense now though (I think), thanks.
Sorry I wasn't clearer with my last question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Merge 2 strings like a zip [unzip()]
by kcott (Archbishop) on Jul 10, 2015 at 04:35 UTC | |
by tel2 (Pilgrim) on Jul 12, 2015 at 22:52 UTC |