From 72c07dbaf0392a9df8f28271b61ffa684d3ba643 Mon Sep 17 00:00:00 2001 From: Manas Asati <44468527+ManasAsati@users.noreply.github.com> Date: Thu, 31 Oct 2019 21:46:31 +0530 Subject: [PATCH] Create find max --- find max | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 find max diff --git a/find max b/find max new file mode 100644 index 0000000..c1221f0 --- /dev/null +++ b/find max @@ -0,0 +1,10 @@ +l = [ 2,3,4,5,6,8] + +n = len(l) +curr_max = 0 +for i in n: + # TODO Fill Code here + if l[i] > curr_max: + curr_max = l[i] + +print("Max element is ", curr_max)