From a827c521b177341f6749eb4ec023deae9a145c79 Mon Sep 17 00:00:00 2001 From: Alicia Date: Fri, 7 May 2021 14:57:30 -0700 Subject: [PATCH] Add a largest value function that returns the largest value --- Python/Functions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Python/Functions.py b/Python/Functions.py index 3a2048f..e33e528 100644 --- a/Python/Functions.py +++ b/Python/Functions.py @@ -15,3 +15,10 @@ def reverseMessage(x): for i in range((len(b)-1),-1,-1): r=r+b[i]+"" return print(r) + +def return_largest(a, b): + """Return the larger of two values a or b""" + if (a > b): + return a + else: + return b