2d array of strings and ints python

The solution for “2d array of strings and ints python” can be found here. The following code will assist you in solving the problem.

In [24]: l =  [[‘1’, ‘ 1’, ‘ 3’], [‘2’, ‘ 3’, ‘ 5’], [‘3’], [‘4’, ‘ 5’], [‘5’, ‘ 1’], [‘6’, ‘ 6’], [‘7’]]

In [25]: result = [map(int,i) for i in l]

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in