how to get number from str in list code example
Example: extract numbers from list of strings python using regex
new_list = [int(item) for sublist in a for item in sublist if item.isdigit()]
new_list = [int(item) for sublist in a for item in sublist if item.isdigit()]