From f87ecc977aedac981ae5eb8c8f5de8bb2c73d84d Mon Sep 17 00:00:00 2001 From: AaronBoshMacsimus <68683671+AaronBoshMacsimus@users.noreply.github.com> Date: Tue, 27 Aug 2024 23:04:53 +0530 Subject: [PATCH 1/2] Create aaron_S5_ECE --- Week_2/aaron_S5_ECE | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Week_2/aaron_S5_ECE diff --git a/Week_2/aaron_S5_ECE b/Week_2/aaron_S5_ECE new file mode 100644 index 0000000..4215988 --- /dev/null +++ b/Week_2/aaron_S5_ECE @@ -0,0 +1,13 @@ +def main(l,target): + ln=[] + f=0 + for i in range(0,len(l)): + for j in range(0, len(l)): + if l[i]+l[j]==target and i!=j: + ln.append(i) + ln.append(j) + print(ln) + return +main([2, 7, 11, 15],9)#[0,1] +main([3, 2, 4],6)#[1,2] +main([3,3],6)#[0,1] From 353b19e71296a7515118740be5d7daa05997e04c Mon Sep 17 00:00:00 2001 From: AaronBoshMacsimus <68683671+AaronBoshMacsimus@users.noreply.github.com> Date: Wed, 28 Aug 2024 08:43:08 +0530 Subject: [PATCH 2/2] Update aaron_S5_ECE --- Week_2/aaron_S5_ECE | 1 - 1 file changed, 1 deletion(-) diff --git a/Week_2/aaron_S5_ECE b/Week_2/aaron_S5_ECE index 4215988..226ad0a 100644 --- a/Week_2/aaron_S5_ECE +++ b/Week_2/aaron_S5_ECE @@ -1,6 +1,5 @@ def main(l,target): ln=[] - f=0 for i in range(0,len(l)): for j in range(0, len(l)): if l[i]+l[j]==target and i!=j: