Question #3194

Given that play_list has been defined to be a list, write a statement that makes the first 3 elements of play_list be "spam", "eggs" and "vikings" (in that order).

Expert's answer

mylist.insert(0, "vikings")
mylist.insert(0, "eggs")
mylist.insert(0, "spam")
LATEST TUTORIALS
APPROVED BY CLIENTS