Created
August 30, 2021 06:12
-
-
Save pamelafox/0a321e72011199a6a6f9f57e51508c29 to your computer and use it in GitHub Desktop.
Lesser 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 lesser_num that: | |
* takes 2 arguments, both numbers. | |
* returns whichever number is the smaller (lesser) number. | |
Use a conditional to implement the function. | |
""" | |
def lesser_num(num1, num2): | |
""" | |
>>> lesser_num(45, 10) | |
10 | |
>>> lesser_num(-1, 30) | |
-1 | |
>>> lesser_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