From 9d325ebe60399dba9394762ff29f749a3676c035 Mon Sep 17 00:00:00 2001 From: Anish Kumar <66084478+anish2272002@users.noreply.github.com> Date: Tue, 26 Jan 2021 19:15:31 +0530 Subject: [PATCH 1/8] Create ANISH_KUMAR.py --- ANISH_KUMAR.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ANISH_KUMAR.py diff --git a/ANISH_KUMAR.py b/ANISH_KUMAR.py new file mode 100644 index 0000000..03fb0dd --- /dev/null +++ b/ANISH_KUMAR.py @@ -0,0 +1,8 @@ +num=int(input()) +for i in range(num): + lst=[] + for j in range(3): + a=int(input()) + lst.append(a) + lst.sort() + print(lst[1]) From a26d086ccc53db0b781343f0d6a01ff5de395819 Mon Sep 17 00:00:00 2001 From: Anish Kumar <66084478+anish2272002@users.noreply.github.com> Date: Wed, 27 Jan 2021 20:16:31 +0530 Subject: [PATCH 2/8] Create ANISH_KUMAR_DAY3.py ANISH KUMAR ISE 2020-21 anish2272002@gmail.com PYTHON --- ANISH_KUMAR_DAY3.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ANISH_KUMAR_DAY3.py diff --git a/ANISH_KUMAR_DAY3.py b/ANISH_KUMAR_DAY3.py new file mode 100644 index 0000000..7f93e1c --- /dev/null +++ b/ANISH_KUMAR_DAY3.py @@ -0,0 +1,17 @@ +''' +ANISH KUMAR +ISE 2020-21 +anish2272002@gmail.com +PYTHON +''' + +N=int(input()) +mat=[] +lst=[] +for i in range(N): + mat.append([]) + for j in range(N): + a=int(input()) + mat[i].append(a) + lst.append(mat[i].count(0)) +print(lst.index(max(lst))) From 48958e01e00cec9457e6eb50166d9bed005830e6 Mon Sep 17 00:00:00 2001 From: Anish Kumar <66084478+anish2272002@users.noreply.github.com> Date: Thu, 28 Jan 2021 20:59:59 +0530 Subject: [PATCH 3/8] Rename ANISH_KUMAR.py to ANISH_KUMAR_DAY2.py --- ANISH_KUMAR.py => ANISH_KUMAR_DAY2.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ANISH_KUMAR.py => ANISH_KUMAR_DAY2.py (100%) diff --git a/ANISH_KUMAR.py b/ANISH_KUMAR_DAY2.py similarity index 100% rename from ANISH_KUMAR.py rename to ANISH_KUMAR_DAY2.py From 4105da210eae0c5badbecb96777cdd8d13170565 Mon Sep 17 00:00:00 2001 From: Anish Kumar <66084478+anish2272002@users.noreply.github.com> Date: Thu, 28 Jan 2021 21:01:51 +0530 Subject: [PATCH 4/8] Create ANISH_KUMAR_DAY1.py ANISH KUMAR ISE 2020-21 anish2272002@gmail.com --- ANISH_KUMAR_DAY1.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ANISH_KUMAR_DAY1.py diff --git a/ANISH_KUMAR_DAY1.py b/ANISH_KUMAR_DAY1.py new file mode 100644 index 0000000..de0ff5f --- /dev/null +++ b/ANISH_KUMAR_DAY1.py @@ -0,0 +1,10 @@ +''' +ANISH KUMAR +anish2272002@gmail.com +''' + +num=int(input()) +for i in range(num): + ab=input() + b=ab.split() + print(int(b[0])+int(b[1])) From cefb942dc6a0434ee831116bc5957ee625941687 Mon Sep 17 00:00:00 2001 From: Anish Kumar <66084478+anish2272002@users.noreply.github.com> Date: Thu, 28 Jan 2021 21:40:36 +0530 Subject: [PATCH 5/8] Create ANISH_KUMAR_DAY4.py Anish Kumar anish2272002@gmail.com ISE 2020-21 PYTHON --- ANISH_KUMAR_DAY4.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ANISH_KUMAR_DAY4.py diff --git a/ANISH_KUMAR_DAY4.py b/ANISH_KUMAR_DAY4.py new file mode 100644 index 0000000..842ad1b --- /dev/null +++ b/ANISH_KUMAR_DAY4.py @@ -0,0 +1,19 @@ +''' +Anish Kumar +anish2272002@gmail.com +ISE 2020-21 +PYTHON +''' +def gcd(a,b): + if(b==0): + return a + return gcd(b,a%b) + +N=int(input()) +for i in range(N): + c=int(input()) + num=input().split() + if(c==1): + print(gcd(int(num[0]),int(num[1]))) + else: + print(int((int(num[0])*int(num[1]))/gcd(int(num[0]),int(num[1])))) From 07d568f06d16350d9bdd2f7a65a8063e09cd24e2 Mon Sep 17 00:00:00 2001 From: Anish Kumar <66084478+anish2272002@users.noreply.github.com> Date: Fri, 29 Jan 2021 20:42:16 +0530 Subject: [PATCH 6/8] Create ANISH_KUMAR_DAY5.py ANISH KUMAR anish2272002@gmail.com ISE 2020-21 PYTHON --- ANISH_KUMAR_DAY5.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ANISH_KUMAR_DAY5.py diff --git a/ANISH_KUMAR_DAY5.py b/ANISH_KUMAR_DAY5.py new file mode 100644 index 0000000..66d1615 --- /dev/null +++ b/ANISH_KUMAR_DAY5.py @@ -0,0 +1,18 @@ +''' +ANISH KUMAR +anish2272002@gmail.com +ISE 2020-21 +PYTHON +''' + +def fact(n): + if(n==0): + return 1 + else: + return n*fact(n-1) + +k=int(input()) +for i in range(0,k): + for j in range(0,i+1): + print(int(fact(i)/(fact(i-j)*fact(j))),end=' ') + print() From da107dfa0d4fac6c911c4bfa66a56eac01c43528 Mon Sep 17 00:00:00 2001 From: Anish Kumar <66084478+anish2272002@users.noreply.github.com> Date: Sat, 30 Jan 2021 21:33:09 +0530 Subject: [PATCH 7/8] Create ANISH_KUMAR_DAY6.py ANISH KUMAR anish2272002@gmail.com ISE 2020-21 PYTHON --- ANISH_KUMAR_DAY6.py | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 ANISH_KUMAR_DAY6.py diff --git a/ANISH_KUMAR_DAY6.py b/ANISH_KUMAR_DAY6.py new file mode 100644 index 0000000..69b6b6d --- /dev/null +++ b/ANISH_KUMAR_DAY6.py @@ -0,0 +1,54 @@ +''' +ANISH KUMAR +anish2272002@gmail.com +ISE 2020-21 +PYTHON +''' + +class student(): + Student_ID=int() + Name=str() + Class=int() + Section=str() + Total_marks=int() + +st_record1=student() +st_record1.Student_ID=6 +st_record1.Name='Anish' +st_record1.Class=12 +st_record1.Section='A' +st_record1.Total_marks=450 + +st_record2=student() +st_record2.Student_ID=9 +st_record2.Name='Aryan' +st_record2.Class=10 +st_record2.Section='B' +st_record2.Total_marks=500 + +st_record3=student() +st_record3.Student_ID=4 +st_record3.Name='Lily' +st_record3.Class=11 +st_record3.Section='C' +st_record3.Total_marks=367 + +st_record4=student() +st_record4.Student_ID=7 +st_record4.Name='Sam' +st_record4.Class=10 +st_record4.Section='B' +st_record4.Total_marks=400 + +st_record5=student() +st_record5.Student_ID=1 +st_record5.Name='John' +st_record5.Class=12 +st_record5.Section='A' +st_record5.Total_marks=490 + +st_record=[st_record1,st_record2,st_record3,st_record4,st_record5] + +rnum=int(input())-1 +print('Student ID Name Class Section Total Marks') +print(st_record[rnum].Student_ID,' '+st_record[rnum].Name,st_record[rnum].Class,' '+st_record[rnum].Section+' ',st_record[rnum].Total_marks,sep=' ') From 5032e6dc19a3fc72b929870221fd5df8b4aa298e Mon Sep 17 00:00:00 2001 From: Anish Kumar <66084478+anish2272002@users.noreply.github.com> Date: Sun, 31 Jan 2021 19:40:01 +0530 Subject: [PATCH 8/8] Create ANISH_KUMAR_DAY7.py ANISH KUMAR anish2272002@gmail.com ISE 2020-21 PYTHON --- ANISH_KUMAR_DAY7.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ANISH_KUMAR_DAY7.py diff --git a/ANISH_KUMAR_DAY7.py b/ANISH_KUMAR_DAY7.py new file mode 100644 index 0000000..a945a82 --- /dev/null +++ b/ANISH_KUMAR_DAY7.py @@ -0,0 +1,20 @@ +''' +ANISH KUMAR +anish2272002@gmail.com +ISE 2020-21 +PYTHON +''' + +alpha=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] +st=input() +s=0 +var=0 +for i in range(alpha.index(st[0]),alpha.index(st[-1])): + if(alpha[i]==st[s]): + s=s+1 + else: + var=1 + print(alpha[i],end=' ') + +if(var==0): + print(None)