572
edits
Changes
m
→PART 2 - Understanding Class Structure
student1.name = 'Jack'
print(student1.name)
print(len(student1.name))
</source>
:# The final part to creating objects is understanding how to pass values into newly created objects, such as, '''student2 = Student('Jessica', '023384103')'''. How did it know that Jessica is the name instead of the long string of numbers? This is done when the class is written, inside the __init__() method. Look at the arguments used for in the __init__ definition:<source lang="python">