Ruby - Enumerable and Collection Processing
Identify the error in this Ruby code:
a = [1, 2, 3] b = ["x", "y"] result = a.zip b puts result
a = [1, 2, 3] b = ["x", "y"] result = a.zip b puts result
puts prints each element on a new line, so it works fine here.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions