def check_string(string_list):
for word in string_list: #second iteration will not work
if "cat" in word or "dog" in word :
print(word)
st = "cat,dog,male"
check_string(st) #will not print because there will be no cat or dog in single characters
if "cat" in st :
print(st) #will print "cat,dog,male"
for word in st :
print(word) #will print "cat,dog,male" vertically
for word in st :
if "k" or "f" in word : #second iteration will not work
print(st) # #will print "cat,dog,male" 12 times as final results
else : #Also this iteration will not work
print("No c or o")