Jan-18-2017, 08:02 AM
well, it's nice you try list comprehension
final3 = [int(i.split()[-2]) for i in final2]however, note that this will produce list with 6 elements all of which will be 41 and after that you need to get an element from this list. i.e. it's not necessary to add extra step in the process when basically you do the same what snippsat suggested.