From 1a8fc82c3ff4f7d557f267868b6dee3b0951ab8e Mon Sep 17 00:00:00 2001 From: Harikishore4461 <56187628+Harikishore4461@users.noreply.github.com> Date: Tue, 8 Oct 2019 12:37:56 +0530 Subject: [PATCH 1/6] 180501052 --- helloworld.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 helloworld.py diff --git a/helloworld.py b/helloworld.py new file mode 100644 index 0000000..de3294d --- /dev/null +++ b/helloworld.py @@ -0,0 +1 @@ +print("helloworld"); From 2195eb6f5dadb4613d3f5f9bc53a1cca7603ef30 Mon Sep 17 00:00:00 2001 From: Harikishore4461 <56187628+Harikishore4461@users.noreply.github.com> Date: Tue, 8 Oct 2019 12:39:03 +0530 Subject: [PATCH 2/6] 180501052 --- helloworld.py => Assignment 1/180501052/helloworld.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename helloworld.py => Assignment 1/180501052/helloworld.py (100%) diff --git a/helloworld.py b/Assignment 1/180501052/helloworld.py similarity index 100% rename from helloworld.py rename to Assignment 1/180501052/helloworld.py From 21a80436747e159dd2f8daa0d6933b81f0ca9774 Mon Sep 17 00:00:00 2001 From: Harikishore4461 <56187628+Harikishore4461@users.noreply.github.com> Date: Sun, 13 Oct 2019 17:47:13 +0530 Subject: [PATCH 3/6] 180501052 --- attendanceStudents.py | 11 +++++++++++ occurances.py | 11 +++++++++++ robberThief.py | 7 +++++++ 3 files changed, 29 insertions(+) create mode 100644 attendanceStudents.py create mode 100644 occurances.py create mode 100644 robberThief.py diff --git a/attendanceStudents.py b/attendanceStudents.py new file mode 100644 index 0000000..64df5da --- /dev/null +++ b/attendanceStudents.py @@ -0,0 +1,11 @@ +l=[] +x=int(input("Enter no of student")) +print("Enter your string") +for i in range(0,x): + a=str(input()) + l.append(a) +print("The students present were:") +for j in l: + z="P" in j + if(z): + print(j[0:-2],end=" ") diff --git a/occurances.py b/occurances.py new file mode 100644 index 0000000..a87febf --- /dev/null +++ b/occurances.py @@ -0,0 +1,11 @@ +x =str(input("Enter the String:")) +a = {} + +for i in x: + if i in a: + a[i] += 1 + else: + a[i] = 1 +print("Occurences") +for j,y in a.items(): + print(j,y) diff --git a/robberThief.py b/robberThief.py new file mode 100644 index 0000000..e88de58 --- /dev/null +++ b/robberThief.py @@ -0,0 +1,7 @@ +x =int(input("Enter the amount robbed by the thief:")) +if x < 5000: + print("Loss") +if x > 19999: + print("Good") +if x>4999 and x<20000: + print("Moderate") From 6951dbc42320ba0a28be2f5ff740799efadb9ab4 Mon Sep 17 00:00:00 2001 From: Harikishore4461 <56187628+Harikishore4461@users.noreply.github.com> Date: Sun, 13 Oct 2019 17:53:03 +0530 Subject: [PATCH 4/6] 180501052 --- .../180501052/attendanceStudents.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename attendanceStudents.py => Assignment 2/180501052/attendanceStudents.py (100%) diff --git a/attendanceStudents.py b/Assignment 2/180501052/attendanceStudents.py similarity index 100% rename from attendanceStudents.py rename to Assignment 2/180501052/attendanceStudents.py From 223da1b609ade151c850c444cdf16fda82c446de Mon Sep 17 00:00:00 2001 From: Harikishore4461 <56187628+Harikishore4461@users.noreply.github.com> Date: Sun, 13 Oct 2019 17:53:55 +0530 Subject: [PATCH 5/6] 180501052 --- occurances.py => Assignment 2/180501052/occurances.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename occurances.py => Assignment 2/180501052/occurances.py (100%) diff --git a/occurances.py b/Assignment 2/180501052/occurances.py similarity index 100% rename from occurances.py rename to Assignment 2/180501052/occurances.py From fd8c8803f08ee24b1008997fa39aa897cbf21e0b Mon Sep 17 00:00:00 2001 From: Harikishore4461 <56187628+Harikishore4461@users.noreply.github.com> Date: Sun, 13 Oct 2019 17:54:39 +0530 Subject: [PATCH 6/6] 180501052 --- robberThief.py => Assignment 2/180501052/robberThief.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename robberThief.py => Assignment 2/180501052/robberThief.py (100%) diff --git a/robberThief.py b/Assignment 2/180501052/robberThief.py similarity index 100% rename from robberThief.py rename to Assignment 2/180501052/robberThief.py