After process the values from a stdin I got the following list in my python program:
[['92', '022'], ['82', '12'], ['77', '13']]
I am trying to have the values as:
[[92, 22], [82, 12], [77, 13]]
I have tried to map the values but found error:
print map(int, s)
Traceback (most recent call last):
File "C:/Users/lenovo-pc/PycharmProjects/untitled11/order string.py", line 13, in <module>
print map(int, s)
TypeError: int() argument must be a string or a number, not 'list'
Where s is my list.
Kindly, suggest me what is the optimized way to make the list of str to convert into integer.