1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
alisha [4.7K]
3 years ago
12

Write a function all_cats that consumes a comma-separated string of animals and prints whether all of the animals have "cat" in

their name. For example, the string "gerbil,catfish,dog,cat" would return False, but just "cat,catfish" would return True. If the function consumes an empty string, then it returns True. Call this function on a string of animals of your choice and print the result.

Computers and Technology
1 answer:
RoseWind [281]3 years ago
8 0

Answer:

  • Image 1 is for the function defining all_cats():

       (All the explanation is given in comments before each statement)

  • Image 2 has the code for testing the function all_cats()
  • Last image has the output of the code.

You might be interested in
Suppose you have the following declaration.int[] beta = new int[50];Which of the following is a valid element of beta.(i) beta[0
kompoz [17]

Answer:

The answer is "Option (i)".

Explanation:

  • In the given question, an array is defined. It is a collection of the same type of data element, which means, array stores either a numeric value or string value at a time.  
  • An array beta is defined, which contains 50 elements. The array elements indexing always starts with 0 which means, the first element of the array will be stored in an index value that is 0. That's why option (i) is correct.
8 0
3 years ago
Choose all the answers that apply.
den301095 [7]
[1] is false, because we are talking about light reaching Earth's surface as a whole, and not in one specific place.

[2] is false, because even if it was in the middle of the night, the other side of the world will be recieving pretty much just as much light as you did the following day.

[3] is false, because even though the sun comes up lower during Winter months, and higher during Summer months, seasons are not constant throughout the entire world. So for what may be Winter for you, will likely be Summer for someone else, so still, just as much light is reaching the Earth.

[4] is false, because wind doesn't affect how light travels.

[5] is true, because clear skies will allow more light to come through that cloudy skies, for example, meaning the amount of light reaching the Earth's surface would not be consistent.
7 0
3 years ago
Read 2 more answers
What are the five functions of bones
hodyreva [135]
Soporte ,Protección, Movimiento, Homeostasis mineral ,<span>Producción de células sanguíneas</span><span />
7 0
4 years ago
A high school teacher conducted a test of a new approach to teaching math. Students were given a pretest when their math class b
MakcuM [25]

Answer:

It represents a threat of instrument change.

Explanation:

Internal validity is a method to determine if research has been performed properly. It is based on the number of confounding variables present in the experiment. If an experiment is carried out and confounding variables are avoided, the internal validity is high, and viceversa. In an ideal context, the experiment's internal validity will be high, which will mean its results will be trustworthy.

The students, by making use of a computer software, lowered the validity of the test performed by the teacher.

5 0
4 years ago
Does any one know how to code? If you do can you help me with my project?
fomenos

Answer:

kinda look it up!!!

Explanation:

go to code.org free coding

4 0
3 years ago
Read 2 more answers
Other questions:
  • A name given to a spot in memory is called:
    5·1 answer
  • HIPAA protects which of the following kinds of data?
    11·2 answers
  • Expressing your needs to others is aggressive behavior.<br> True or False?
    5·2 answers
  • : How does the founder of Wikipedia keep a tight reign on accuracy? HELP PLEZ AT LEAST A PARGRAPH PLES
    6·1 answer
  • You can sort data in a table or_____?<br><br><br> A. Report<br> B. Form<br> C. Field<br> D. Record
    7·2 answers
  • Tweaking existing technology in a new way is usually called _____. leveraged creativity state-of-the-art breakthrough applicatio
    5·1 answer
  • What happens to a mechanical system when two opposing torques do not cancel out?
    7·1 answer
  • What would happen without satellites???
    12·2 answers
  • Select the correct text in the passage.
    12·1 answer
  • A field value is currently not in any group. what happens when you try adding it to an existing group?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!