def recursive_list_removal(base_list, purge_list):
 for item in purge_list:
  for _item in base_list:
   if (item == _item):
    base_list.pop(base_list.index(item))

def recursive_list_removal ( base_list , purge_list ) : for item in purge_list : for _item in base_list : if ( item == _item ) : base_list . pop ( base_list . index ( item ) )
remove items from a list .