""" Exercise 7.10 from "A primer on... Identify and implement the required special methods from the intended usage of the class. """ class Hello: def __init__(self): self.greeting = "Hello, " def __call__(self, arg): return self.greeting + arg + '!' def __str__(self): return self.greeting + 'World!' a = Hello() print(a("students")) #Hello, students! print(a) #Hello, World! """ Terminal> python Hello.py Hello, students! Hello, World! """