Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harshitha Y - 2nd Year CSE C 180501182 #127

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Assignment 1/180501182/hello_world.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello World")
10 changes: 10 additions & 0 deletions Assignment 2/180501182/attendanceStudents.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
n=int(input('Enter the No of Students : '))
list=[]
print('Enter your string : ')
for i in range(n):
name=input().split('-')
if name[1] == 'P':
list.append(name[0])
print('People who were present are : ')
for name in list:
print(name, end =" ")
15 changes: 15 additions & 0 deletions Assignment 2/180501182/occurance.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
string=input("Enter the string: ")
print("Occurances:")
count = string.count('a')
print('a ->', count)
count = string.count('b')
print('b ->', count)
count = string.count('c')
print('c ->', count)
count = string.count('d')
print('d ->', count)
count = string.count('e')
print('e ->', count)



9 changes: 9 additions & 0 deletions Assignment 2/180501182/robbertheif.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
amount=int(input("Enter the amount to be robbed by the theif: "))
if amount < 5000 :
x='Loss'
elif amount > 5000 :
if amount < 19999 :
x='Moderate'
elif amount > 20000 :
x='Good'
print("Profit is {0} ".format(x))