I have the following list:
ll = ['listA_5_val','listB_15_val','listC_25_val']
and I would like to create a new list based on this:
new_list = [5,15,25]
where we have extracted the number from each list. I can do this for a single element like this:
ll[0][6:-4]
How do I do this to entire list?