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

Wednesday, November 28, 2012

Codecademy: "Slicing Lists and Strings"


#sample solution


animals = "catdogfrog"
cat = animals[:3]# The first three characters [:3] of `animals`
dog = animals[3:6]# The fouth through sixth characters
frog = animals[6:] # From the seventh character to the end

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts