Data & Functions = Attributes & Methods (when talking about a class)
class Cat:
#Init/initialize (like a constructor)
def __init__(self, name, color, gender):
self.name = name
self.color = color
self.gender = gender
def introduction(self):
return "Hi! I'm {}. A {}, {} cat.".format(self.name, self.color, self.gender)
uli = Cat('Uli', 'Gray', 'Male')
uli.color
Cat.introduction(uli)