Anonymous user
Loop over multiple arrays simultaneously: Difference between revisions
Loop over multiple arrays simultaneously (view source)
Revision as of 15:32, 6 August 2009
, 14 years ago→{{header|Python}}
(added J (though because J abstracts away arrays and looping, the solution is questionable)) |
|||
Line 16:
=={{header|J}}==
(,.":"0)&:>/ 'abc' ; 'ABC' ; 1 2 3
=={{header|Python}}==
<lang python>>>> print ( '\n'.join(''.join(x) for x in zip('abc', 'ABC', '123')) )
aA1
bB2
cC3
>>> </lang>
=={{header|Ruby}}==
|