Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created September 21, 2016 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/f09c1746fb9b5d03d952b99569a4fc9c to your computer and use it in GitHub Desktop.
Save codecademydev/f09c1746fb9b5d03d952b99569a4fc9c to your computer and use it in GitHub Desktop.
Codecademy export
def cube(number):
return number**3
def by_three(number):
if number % 3 == 0:
return cube(number)
print "number is divisible by 3"
else:
return False
print "number is not divisible by 3"
cube(12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment