-
-
Save codecademydev/47e7c7547cf9914df13a7c51a042417d 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
# Write your twice_as_large function here: | |
def twice_as_large(num1, num2): | |
if num1 > 2 * num2: | |
return True | |
else: | |
return False | |
# Uncomment these function calls to test your twice_as_large function: | |
print(twice_as_large(10, 5)) | |
# should print False | |
print(twice_as_large(11, 5)) | |
# should print True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment