<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def c_array(ctype, values):
 """Create ctypes array from a Python array. Parameters ctype : ctypes data type Data type of the array we want to convert to, such as mx_float. values : tuple or list Data content. Returns ------- out : ctypes array Created ctypes array. Examples -------- 3 2.0 """

    out = (ctype * len(values))()
    out[:] = values
    return out