<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def last(iterable, default=None):
 """Try to get the last iterable item by successive iteration on it. :param Iterable iterable: iterable to iterate on. Must provide the method __iter__. :param default: default value to get if input iterable is empty. :raises TypeError: if iterable is not an iterable value. :Example: 's' 'test' None"""


    result = default

    iterator = iter(iterable)

    while True:
        try:
            result = next(iterator)

        except StopIteration:
            break

    return result