<filename>python/python_work6/input7.py
# -*- coding:utf-8-*-

hi = ["dog","cat","bird","dog","dog","cat","dog","dog","bear","dog"]

print(hi)
while "dog" in hi:
	hi.remove("dog")

print("ok!")
print(hi)
<filename>python/python_work6/input7.py
# -*- coding:utf-8-*-

hi = ["dog","cat","bird","dog","dog","cat","dog","dog","bear","dog"]

print(hi)
while "dog" in hi:
	hi.remove("dog")

print("ok!")
print(hi)
# -*- coding:utf-8-*-