Starter Quiz

Question 1 of 6
1 of 6
What does this code do?
123
animals = ["dog", "cat", "rabbit"] animals.insert(1, "hamster") print(animals)
Code colour

When programmers write code, they use a special tool called an IDE (Integrated Development Environment). In an IDE, different colours are used to help programmers understand the code:


  • • Blue - numbers and boolean values
  • • Green - strings
  • • Purple - keywords
Select one answer
What does the
insert()
method do?