Skip to content

Commit

Permalink
Vijay Natraj K - 2nd Year CSE C 180501170 (#175)
Browse files Browse the repository at this point in the history
* Vijay08Natraj07: CS C 180501170

* Vijay08Natraj07 CS C 180501170
  • Loading branch information
Vijay08Natraj07 authored and nivethaakm99 committed Oct 19, 2019
1 parent 8d39111 commit 506e767
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assignment 1/180501170/hello_world.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
print("Hello_World")

12 changes: 12 additions & 0 deletions Assignment 2/180501170/attedanceStudent.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
lst=[]
n=int(input("Enter the number of students :"))
for i in range(n):
name=input("Enter name")
lst.append(name)
print(lst)
for i in lst:
if i.endswith('P'):
print(i.split("-")[0])
if i.endswith('p'):
print(i.split("-")[0])

8 changes: 8 additions & 0 deletions Assignment 2/180501170/occurances.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tstr=input("Enter the string")
freq={}
for i in tstr:
if i in freq:
freq[i] +=1
else:
freq[i] =1
print("occurances\n"+str(freq))
8 changes: 8 additions & 0 deletions Assignment 2/180501170/robberThief.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
amount=int(input("Enter the amount robbed ny thief"))
if amount<5000:
print("Profit is Loss")
elif amount==20000:
print("Profit is Good")
elif amount>5000:
if amount<19999:
print("Profit is Moderate")

0 comments on commit 506e767

Please sign in to comment.