You have turned-in this assignment. You can review the lesson and see your previous answers.
Starter Quiz
Question 1 of 6
1
of 6
What does this code do?
1
2
3
animals = [
"dog"
,
"cat"
,
"rabbit"
] animals.insert(
1
,
"hamster"
) print(animals)
Code colour
Select one answer
adds hamster to the end of the list
replaces cat with hamster
inserts hamster at index position
[1]
, shifting the other items
inserts hamster at index position
[0]
, replacing dog
Need a hint?
Check