Created
August 30, 2021 06:09
-
-
Save pamelafox/d4968e2aeca1916f227a952fb99fee6a to your computer and use it in GitHub Desktop.
Greater Num
This file contains hidden or 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 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