Removing last elements of a list if they match a pattern

remove multiple elements from list python
python remove multiple items from list by index
python remove item from list if contains
remove range of elements from list python
python remove list from list
remove elements from list python
remove string from list python
python remove character from list by index