Pattern Solving In Python What Is A Function