get a list of items form nested list `li` where third element of each item contains string 'ar',[x for x in li if 'ar' in x[2]]