<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def autoconvert(string):
 """Try to convert variables into datatypes."""

    for fn in (boolify, int, float):
        try:
            return fn(string)
        except ValueError:
            pass
    return string