What will be the output of the following Python code? names = ["Aman",…

PYQ IBPS SO CRP SPL-XIV (2024)

What will be the output of the following Python code?

names = ["Aman", "Rahul", "Peter"]

names.insert(1, "John")

print(names[1])

  1. A.

    Aman

  2. B.

    Rahul

  3. C.

    Peter

  4. D.

    John

  5. E.

    Error

Attempted by 199 students.

Sign up free to check your answer

Sign up free

Explore the full course: Ibps So It Mains

Loading lesson…