I am trying to figure out how to put a define function inside a define function inside of a class. Python code of what I want to do:
class Guy():
    def move(self):
        def left(self):
            //compute
        def right(self):
            //compute
        def up(self):
            //compute
        def down(self):
            //compute
And then be able to call Guy.move.right() later on in the program. The interpreter gives me an error saying 'Function has no attribute right' or something like that. Is there any way to do this without having to bring my functions out of the move function and calling them Guy.right, Guy.left, etc.?
 
     
     
     
     
     
     
    