Skip to content

Instantly share code, notes, and snippets.

@pamelafox
Created August 30, 2021 06:12
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/0a321e72011199a6a6f9f57e51508c29 to your computer and use it in GitHub Desktop.
Save pamelafox/0a321e72011199a6a6f9f57e51508c29 to your computer and use it in GitHub Desktop.
Lesser Num
"""
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