-
Notifications
You must be signed in to change notification settings - Fork 0
/
Student.py
27 lines (25 loc) · 826 Bytes
/
Student.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class Student:
def __init__(self, name, dept, sem, event1, event2):
self.name = name
self.dept = dept
self.sem = sem
if event1 == "SP":
self.event1 = "Shot Put"
elif event1 == "DT":
self.event1 = "Discuss Throw"
elif event1=="LJ":
self.event1="Long Jump"
elif event1=="FOOTBALL" or "VOLLEYBALL" or "CRICKET" or "BASKETBALL":
self.event1=event1
else:
self.event1 = event1 + " Sprint"
if event2 == "SP":
self.event2 = "Shot Put"
elif event2 == "DT":
self.event2 = "Discuss Throw"
elif event2 == "":
self.event2 = ""
elif event2=="LJ":
self.event2="Long Jump"
else:
self.event2 = event2 + " Sprint"