Python Code To Find Missing Number In Pattern