Python - Convert string to array/rows : <p>I'm doing a test in Python3 trying to convert a string from <code>http.client</code> to a array/row format.  </p>

<pre><code>val1 = "error"
val2 = "message"
array = (val1,val2)
value = "('error', 'message')"
print(value[1])
 &gt;&gt; error
print(array[1])
 &gt;&gt; '
</code></pre>

<p>I would like to get what I get when I run <code>print(value[1])</code> using a string.<br>
Thanks :)</p>
