I have the following list of values:
DATA = [['5', '1'], ['5', '5'], ['3', '1'], ['6', '1'], ['4', '3']]
How can I convert it to :
DATA = [[5, 1], [5, 5], [3, 1], [6, 1], [4, 3]]
Note : I have already tried the following but all are not working in Python 3 :
1. DATA = [int(i) for i in DATA]
2. DATA = list(list(int(a) for a in b) for b in DA if a.isdigit())
3. DATA = [map(int,x) for x in DATA]
Please help me with this. Thanks!!