```python
pets=['cat','dog','bird','cat','panda']
while 'cat' in pets:
pets.remove('cat')
print(pets)
pet=['cat','dog','bird','cat','panda']
for animal in pet:
if animal =='cat':
pet.remove(animal)
print(pet)
```python
pets=['cat','dog','bird','cat','panda']
while 'cat' in pets:
pets.remove('cat')
print(pets)
pet=['cat','dog','bird','cat','panda']
for animal in pet:
if animal =='cat':
pet.remove(animal)
print(pet)