<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extendlist(lst, i, value=''):
 """extend the list so that you have i-th value"""

    if i < len(lst):
        pass
    else:
        lst.extend([value, ] * (i - len(lst) + 1))