Question · Python course · Module 2: Data Structures

The insert() Method

What does: lista.insert(0, 'X') do?

Answer options

  • Adds 'X' to the end
  • Adds 'X' to the beginning
  • Replaces the first element with 'X'
  • Removes 'X' from the list
Show the answer

Correct answer:

  • Adds 'X' to the beginning