Question
What is the output of the given code?a=["hey", "ruby", "language"]b=["hey", "ruby", "language"]if a==b print "Equal"else print "Not equal"end
Answer: Option A Elements of both the array are same and in same sequence hence they are equal.
Output:
Equal
Was this answer helpful ?