<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ngram(n, iter_tokens):
 """ Return a generator of n-gram from an iterable """

    z = len(iter_tokens)
    return (iter_tokens[i:i+n] for i in range(z-n+1))