import random class Agent(): def __init__(self): self.x = random.randint(0,100) self.y = random.randint(0,100) def get_x(self): return self.x def get_y(self): return self.y class English(Agent): def say_hello(self): print ("Hello old chap") class Welsh(Agent): def say_hello(self): print("helo")