<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def foreground(color, content, readline=False):
 """ Color the text of the content :param color: pick a constant, any constant :type color: int :type content: unicode :return: ansi string :rtype: unicode """

    return encode(color, readline=readline) + content + encode(DEFAULT, readline=readline)