Changes

Jump to: navigation, search

OPS435 Python Lab 6

20 bytes added, 19:44, 7 July 2019
Create a Python Script Demonstrating Classes
Student Number: 013454900
GPA of student John is 2.0
['ops435ops235', 'ops235ops435', 'uli101']
Student Name: Jessica
Student Number: 123456
GPA of student Jessica is 2.5
['ipc144', 'cpp244', 'ipc144cpp344']
</source>
:::'''Sample Run 2 (with import):'''<source lang="python">
student1.displayCourses()
# Will print: ['ops535', 'win310']
student2 = Student('Jen', 987654321)

Navigation menu