How to have a method of a method in python classes code example Example: cls in python import os clear = lambda: os.system('cls')