<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
from typing import List


def all_prefixes(string: str) -> List[str]:
    """ Return list of all prefixes from shortest to longest of the input string ['a', 'ab', 'abc'] """
    result = []

    for i in range(len(string)):
        result.append(string[:i+1])
    return result
