give all element in a list starts with string code example Example: give all element in a list starts with string with_ele = [ar for ar in array if ar.startswith(ele)]