<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_primitive(val):
 """ Checks if the passed value is a primitive type. True True True False False :param val: value to check :return: True if value is a primitive, else False """

    return isinstance(val,
                      (str, bool, float, complex, bytes, six.text_type)
                      + six.string_types + six.integer_types)