Source Code:
(back to article)
original_list = [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']] converted_list = [[int(s) for s in lst] for lst in original_list] print(converted_list)
Result:
Report an issue