📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • ✖

      Question

      What is the output of the following Python code

      snippet?    x = [1, 2, 3]    y = x    x.append(4)    print(y)
      A [1, 2, 3] Correct Answer Incorrect Answer
      B [1, 2, 3, 4] Correct Answer Incorrect Answer
      C [4, 3, 2, 1] Correct Answer Incorrect Answer
      D Error Correct Answer Incorrect Answer

      Solution

      [1, 2, 3, 4]

      Practice Next

      Relevant for Exams:

      ask-question