human
Can you show me a Python function for assigning color to text.
assistant
Here is a Python function for asigning color to text

import random

def _assign_color(text, color):
    """
    Assign color to text
    """
    return text + "\033[0;33m" + color + "\033[0m"

# Enter the text
text = "hello"

# Enter the color
color = "red"

# Calling the function
print((_assign_color(text, color)))

#Example Output
# hello[0;33mred[0m

#Remember to inspect code for bugs.