class Test: def __init__(self,name): self.name=name def print_name(): print(self.name)