<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def chunked(iterable, n):
 """Returns chunks of n length of iterable If len(iterable) % n != 0, then the last chunk will have length less than n. Example: [(1, 2), (3, 4), (5,)] """

    iterable = iter(iterable)
    while 1:
        t = tuple(islice(iterable, n))
        if t:
            yield t
        else:
            return