How to convert list of intable strings to int,list_of_lists = [[try_int(x) for x in lst] for lst in list_of_lists]