Python Language Notes > Classes > Flashcards
What is the correct syntax to create a class in Python?
def __init__(self, nums): self.nums = nums
def someFunc(self): x = self.nums print(x)
What is the equivalent to this.variable in Python?
Self