From 9a5f03c27414a425f64d2f0e8e91081d193a8bd3 Mon Sep 17 00:00:00 2001 From: arav03 <55995497+arav03@users.noreply.github.com> Date: Fri, 8 Oct 2021 18:43:45 +0530 Subject: [PATCH] Create max.py --- max.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 max.py diff --git a/max.py b/max.py new file mode 100644 index 0000000..76ac272 --- /dev/null +++ b/max.py @@ -0,0 +1,15 @@ +# Python program to find the +# maximum of two numbers + + +def maximum(a, b): + + if a >= b: + return a + else: + return b + +# Driver code +a = 2 +b = 4 +print(maximum(a, b))