Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created June 26, 2019 22:54
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/47e7c7547cf9914df13a7c51a042417d to your computer and use it in GitHub Desktop.
Save codecademydev/47e7c7547cf9914df13a7c51a042417d to your computer and use it in GitHub Desktop.
Codecademy export
# 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