<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __try_parse_number(self, string):
 """Try to parse a string to a number, else return False."""

        try:
            return int(string)
        except ValueError:
            try:
                return float(string)
            except ValueError:
                return False