From 082756e7f852328d5ab7c253e9d216f200a6340d Mon Sep 17 00:00:00 2001 From: mickg Date: Thu, 1 Apr 2021 18:30:19 +0200 Subject: [PATCH] added returnLargest function to Functions.py --- Python/Functions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Python/Functions.py b/Python/Functions.py index 3a2048f..7897daf 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) + +# A Function that returns the largest of the two arguments +def returnLargest(a, b): + if (a > b): + return a + else: + return b \ No newline at end of file