How can I get a value that's inside parentheses in a string in Python?
<p>I've got something like this:</p>

<pre><code>a = '2(3.4)'
b = '12(3.5)'
</code></pre>

<p>I only want the value inside the brackets. I used regex, and it worked, but my teacher won't allow it. How can I do this?</p>
