Answer to Question #3194 in Python for Elizabeth

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).
1
Expert's answer
2011-06-22T10:52:17-0400
mylist.insert(0, "vikings")
mylist.insert(0, "eggs")
mylist.insert(0, "spam")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Assignment Expert
23.06.11, 12:17

You are also right. Thanks.

Drew
21.06.11, 06:43

play_list[0:3]= "spam", "eggs","vikings"

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS