# Author: James Tam # Version: November 13, 2024 # Learning concepts: understanding the need for self when inside the methods # of a class. class Person: def __init__(self,aName): self.name = aName def start(): stacey = Person("Stacey") jamie = Person("Jamie") print("What will happen when this method call is uncommented Why?") #Spoiler alert (i.e. answer): Self is only a parameter for class methods not #functions. #self.name = "James friend" print("What will happen when these 3 instructions are uncommented? Why?") #name = "James friend" #print(stacey.name) #print(jamie.name) start()