Skip to content

Instantly share code, notes, and snippets.

@pamelafox
Created August 30, 2021 06:09
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 pamelafox/d4968e2aeca1916f227a952fb99fee6a to your computer and use it in GitHub Desktop.
Save pamelafox/d4968e2aeca1916f227a952fb99fee6a to your computer and use it in GitHub Desktop.
Greater Num
"""
Write a function named greater_num that:
* takes 2 arguments, both numbers.
* returns whichever number is the greater (higher) number.
Use an if/else to implement the function.
"""
def greater_num(num1, num2):
"""
>>> greater_num(45, 10)
45
>>> greater_num(-1, 30)
30
>>> greater_num(20, 20)
20
"""
# YOUR CODE HERE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment