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

Saturday, December 1, 2012

Codecademy: Practice Makes Perfect


#sample solution under list slicing exercise


to_21 = range(22)[1::]
odds = to_21[::2]
a = int(len(to_21)/3)
b = int(2*(len(to_21)/3))
middle_third = to_21[a:b:]
print to_21
print odds
print middle_third

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts