jaredfifa
03.03.2020 •
Engineering
The function below takes a single string parameter: input_string. If the input contains the lowercase letter z, return the string 'has the letter z'. Otherwise, return the string 'not worthwhile'.
Solved
Show answers
More tips
- D Dating, Love, Relationships Is it a Compliment or Flattery: What s the Difference?...
- H Health and Medicine What Are the Best Vitamins? A Scientific View on Vitamin Supplements...
- F Food and Cooking From Latte to Espresso: Which Coffee Drink is the Most Popular on Earth?...
- C Computers and Internet How to Set Up Internet on iPhone? Detailed Guide with Step-by-Step Instructions...
- F Family and Home How to Teach Your Child to Speak: Tips and Recommendations...
- P Philosophy Agnosticism: Opinion or Belief?...
- S Style and Beauty How to choose the best mascara for your eyelashes...
- F Food and Cooking Discover Delicious Recipes You Can Make with Ground Meat...
- C Computers and Internet Google Search Tips and Tricks: Everything You Need to Know...
- S Science and Technology Why is there no gravity on other planets?...
Answers on questions: Engineering
- M Mathematics Write 7 over 8 as an equivalent fraction with 56 as a denominator...
- M Mathematics What is the equation of this line in standard form? a. −6x+7y=−11 b. −6x+5y=13 c. −6x+7y=11 d. −7x+6y=−11...
- E English Ahoneybee s dance in its dark hive around a crowd of fellow workers conveys where food is, relative to the direction of the sun. this is an example of communication....
- H History To change british policy the colonists felt that the most effective way was to...
- H History The united states emerged from world war ii as the most powerful nation in the world because...
- B Biology What is the part of the syringe that goes down called?...
- C Chemistry What is the chemical formula for the base lithium hydroxide?...
- B Biology What is the name of the enzyme found in tears to fight infection?...
- B Biology What is the most prevalent viral infection seen in neonates?...
- B Biology The type of tumor with the ability to invade nearby tissues and spread to other locations in the body...
Ответ:
# string_contains function is defined with input_string
# as arguments
def string_contains(input_string):
# if-statement that check if letter z is in input_string
if 'z' in input_string:
# it print"has the letter z" if it has z
print("has the letter z")
else:
# else it print "not worthwhile"
print("not worthwhile")
# string_contains function is called
string_contains("The animal is zebra")
string_contains("learning is fun")
Explanation:
The code is written in Python and well commented.
Image of the output when the function is called is attached.
Ответ:
The organism is an amoeba belonging to the protist kingdom.
Explanation: The organism cannot be placed in the plantae kingdom because the organism does not contain a cell wall or chloroplasts. The organism also cannot be bacteria or Archaebacteria because it has a nucleus. The organism cannot belong to the fungi or animalia kingdom because it contains psedupodium.