-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAssignment5.py
More file actions
23 lines (18 loc) · 877 Bytes
/
Assignment5.py
File metadata and controls
23 lines (18 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Student:
def __init__(self=1,studentid=1001,studentname="Addy",qualifyingexammarks=56.09, residentialstatus="H", yearofengg=3, branchname="CSE"):
self.__studentid = studentid
self.__studentname = studentname
self.__qualifyingexammarks = qualifyingexammarks
self.__residentialstatus = residentialstatus
self.__yearofengg = yearofengg
self.__branchname = branchname
print("Student Id: ",self.__studentid)
print("Student Name: ", self.__studentname)
print("Qualifying Exam Marks: ", self.__qualifyingexammarks)
print("Residential Status: ", self.__residentialstatus)
print("Current Year of Engineering: ",self.__yearofengg)
print("Branch Name: ",branchname)
'For Default - CASE 1'
#deets = Student()
'CASE - 2'
deets=Student(15001,"Jack",125.5,"H",1,"Civil")