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

Sunday, November 25, 2012

Codecademy: "Practice Makes Perfect"


#sample solution


def cube(num):
return num**3

def by_three(num):
if num % 3 == 0:
return cube(num)
else:
return False  
end

print by_three(11)
print by_three(12)
print by_three(13)

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts