Quotes help make search much faster. Example: "Practice Makes Perfect"

Wednesday, November 28, 2012

Codecademy: "List Slicing"


#sample solution


suitcase = ["sunglasses", "hat", "passport", "laptop", "suit", "shoes"]
first = suitcase[0:2] # the first two items
middle = suitcase[2:4] # third and fourth items
last = suitcase[4:6] # the last two items

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts