Ruby - Enumerable and Collection Processing
What is the output of the following Ruby code?
a = [1, 2, 3] b = ['a', 'b', 'c'] result = a.zip(b) puts result.inspect
a = [1, 2, 3] b = ['a', 'b', 'c'] result = a.zip(b) puts result.inspect
zip pairing15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions