Changes

Jump to: navigation, search

OPS435 Python Lab 6

5 bytes removed, 00:11, 3 July 2018
PART 2 - Understanding Class Structure
:# Have a look at the contents of the object student1:<source lang="python">
print(student1.name)
print(student1.number)print(student1.courses)
student1.displayStudent()
</source>
:# Take a closer look at some of these different attributes and methods.<source lang="python">
print(student2.name)
print(student2.number)print(student2.courses)
student2.displayStudent()
</source>
['cpp244', 'ipc144']
</source>
:::'''Sample Run 2 (with import into ipython3):'''<source lang="python">
from lab6a import Student
198
edits

Navigation menu