<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_chunks(string, num_chars):
 """Yield num_chars-character chunks from string."""

    for start in range(0, len(string), num_chars):
        yield string[start:start+num_chars]