From a79132eb81451cb07fe32c361466cee7c12b833f Mon Sep 17 00:00:00 2001 From: arvind <54634293+arvind-mocha@users.noreply.github.com> Date: Wed, 9 Oct 2019 20:49:17 +0530 Subject: [PATCH 1/6] 180501014 --- helloworld.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helloworld.py b/helloworld.py index 8cde782..de3294d 100644 --- a/helloworld.py +++ b/helloworld.py @@ -1 +1 @@ -print("hello world") +print("helloworld"); From aca4ace1b4206eba44683c710e0665f6054093a8 Mon Sep 17 00:00:00 2001 From: arvind <54634293+arvind-mocha@users.noreply.github.com> Date: Wed, 9 Oct 2019 20:50:14 +0530 Subject: [PATCH 2/6] 180501014 --- helloworld.py => Assignment 1/180501014/helloworld.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename helloworld.py => Assignment 1/180501014/helloworld.py (100%) diff --git a/helloworld.py b/Assignment 1/180501014/helloworld.py similarity index 100% rename from helloworld.py rename to Assignment 1/180501014/helloworld.py From 65ab660405a2dcfc8371371df8825fb66ab8c6ba Mon Sep 17 00:00:00 2001 From: arvind <54634293+arvind-mocha@users.noreply.github.com> Date: Mon, 14 Oct 2019 19:39:24 +0530 Subject: [PATCH 3/6] 180501014 --- attendanceStudents.py | 22 +++++++++++----------- occurances.py | 10 ++++++++++ robberthief.py | 7 +++++++ 3 files changed, 28 insertions(+), 11 deletions(-) create mode 100644 occurances.py create mode 100644 robberthief.py diff --git a/attendanceStudents.py b/attendanceStudents.py index 1622422..924d135 100644 --- a/attendanceStudents.py +++ b/attendanceStudents.py @@ -1,11 +1,11 @@ -n=int(input('enter the no.of students:')) -attendance=[] -print('enter the string:') -for i in range(n) - b=input().split('-') - if b[1]=='p' - attendance.append(b[0]) -print('people present are:') -for name in attendance: - print(name,end ="") - +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 student 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..f12cdfc --- /dev/null +++ b/occurances.py @@ -0,0 +1,10 @@ +x=str(input("Enter the string")) +a={} +for i in x: + if i in a: + a[i]+=1 + else: + a[i]=1 +print("Occurances") +for j,y in a.items(): + print(j,y) diff --git a/robberthief.py b/robberthief.py new file mode 100644 index 0000000..cff1b3d --- /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 fbedd173728d8e200fd4c0772d72d09671efdf4c Mon Sep 17 00:00:00 2001 From: arvind <54634293+arvind-mocha@users.noreply.github.com> Date: Mon, 14 Oct 2019 19:40:10 +0530 Subject: [PATCH 4/6] 180501014 --- .../180501014/attendanceStudents.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename attendanceStudents.py => Assignment 2/180501014/attendanceStudents.py (100%) diff --git a/attendanceStudents.py b/Assignment 2/180501014/attendanceStudents.py similarity index 100% rename from attendanceStudents.py rename to Assignment 2/180501014/attendanceStudents.py From 395837cf9285b7b83293cfabb9db96fb52ba0d54 Mon Sep 17 00:00:00 2001 From: arvind <54634293+arvind-mocha@users.noreply.github.com> Date: Mon, 14 Oct 2019 19:41:05 +0530 Subject: [PATCH 5/6] 180501014 --- occurances.py => Assignment 2/180501014/occurances.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename occurances.py => Assignment 2/180501014/occurances.py (100%) diff --git a/occurances.py b/Assignment 2/180501014/occurances.py similarity index 100% rename from occurances.py rename to Assignment 2/180501014/occurances.py From dd859a5f00fd7ad1b13851a2211a6f3704d7e029 Mon Sep 17 00:00:00 2001 From: arvind <54634293+arvind-mocha@users.noreply.github.com> Date: Mon, 14 Oct 2019 19:41:56 +0530 Subject: [PATCH 6/6] 180501014 --- robberthief.py => Assignment 2/180501014/robberthief.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename robberthief.py => Assignment 2/180501014/robberthief.py (100%) diff --git a/robberthief.py b/Assignment 2/180501014/robberthief.py similarity index 100% rename from robberthief.py rename to Assignment 2/180501014/robberthief.py