Question

    What does the following code do? x = [1, 2, 3]

    y = [4, 5, 6] z = x + y
    A Multiplies the elements of x and y together Correct Answer Incorrect Answer
    B Adds the elements of x and y together Correct Answer Incorrect Answer
    C Concatenates the elements of x and y together Correct Answer Incorrect Answer
    D Subtract the elements of x and y together Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    Concatenates the elements of x and y together

    Practice Next