Jun-25-2023, 09:25 PM
As to your latest question, that is simple
mylist = ['this_is_a_sentence 500', 'the_color_purple 650', 'this_is_also_a_sentence 750'] for seq in mylist: if 'nte' in seq: print(seq) # now process this data somehow