Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started