-
-
Save codecademydev/f09c1746fb9b5d03d952b99569a4fc9c to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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