Question: sole: EST PASSED EST PASSED Evaluate Feedback: Missing Parameter Type View Trace The function named all cats has a parameter named animals, but that
sole: EST PASSED EST PASSED Evaluate Feedback: Missing Parameter Type View Trace The function named all cats has a parameter named animals, but that parameter does not have a type specified. Run Blocks Split Text Reset Import datasets Upload History 1 from cisc108 import assert_equal 2 def all cats (animals): if animals == "": animals_list = animals.split(",") all_contains_cats = True 3 4 return True 5 else: 6 7 8 9 10 11 12 for value in animals_list: if 'cat' not in value: all contains_cats = False return all contains_cats 13 assert_equal(all_cats ("gerbil, catfish, dog, cat"), False) 14 assert_equal(all_cats ("cat, catfish"), True)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
