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

Tuesday, November 27, 2012

Codecademy: "Access by Index"


#sample solution


numbers = [5, 6, 7, 8]

print "Adding the numbers at indices 0 and 2..."
print numbers[0] + numbers[2]
print "Adding the numbers at indices 1 and 3"
# Your code here
print numbers[1] + numbers[3]

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts