i have a list whose elements are strings. all the elements in the list are numbers but are represented as string type and i wish to convert them to int type. i tried using map but the output is not what i want. please help.<br>
<br> x = [&#39;0&#39;, &#39;0&#39;, &#39;20&#39;, &#39;15&#39;, &#39;42&#39;, &#39;0&#39;, &#39;0&#39;, &#39;0&#39;, &#39;0&#39;, &#39;0&#39;, &#39;0&#39;, &#39;0&#39;, &#39;0&#39;, &#39;52&#39;, &#39;57&#39;, &#39;0&#39;, &#39;254&#39;, &#39;0&#39;, &#39;177&#39;, &#39;0&#39;, &#39;617&#39;, &#39;1021979&#39;]<br>
<br>&gt;&gt;&gt; T2 = [map(int, i) for i in x]<br>&gt;&gt;&gt; T2<br>[[0], [0], [2, 0], [1, 5], [4, 2], [0], [0], [0], [0], [0], [0], [0], [0], [5, 2], [5, 7], [0], [2, 5, 4], [0], [1, 7, 7], [0], [6, 1, 7], [1, 0, 2, 1, 9, 7, 9]]<br>
<br>----------<br><br>