-
Notifications
You must be signed in to change notification settings - Fork 0
/
student.py
18 lines (16 loc) · 793 Bytes
/
student.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# defining the properties of a student registration class
class StudentRegistration:
studentId = str()
lastName = str()
firstname = str()
course1Id = str()
course1Title = str()
course2Id = str()
course2Title = str()
course3Id = str()
course3Title = str()
isUnderGrad = str()
#helper method to display all the student details in the string format
def toString(self):
return ("Student ID: "+self.studentId+", Last Name: "+self.lastName+", First Name: "+self.firstName+", Course1 ID: "+self.course1Id+", Course1 Title: "+self.course1Title+
", Course2 ID: "+self.course2Id+", Course2 Title: "+self.course2Title+", Course3 ID: "+self.course3Id+", Course3 Title: "+self.course3Title+", IsUnderGrad: "+self.isUnderGrad)