Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions