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
Masja [62]
3 years ago
15

The function below takes a single string parameter: input_string. If the input contains the lowercase letter z, return the strin

g 'has the letter z'. Otherwise, return the string 'not worthwhile'.

Engineering
1 answer:
Whitepunk [10]3 years ago
4 0

Answer:

# 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.

You might be interested in
i need jacket for my daughter who will be going on a girls scouts camping trip it cannot be bulky because she is limited to one
lawyer [7]
What’s the question?
6 0
3 years ago
Read 2 more answers
If a and b are both int arrays, then a b; will
8090 [49]

Answer:

D

Explanation:

Copy all elements of b into a

4 0
3 years ago
Cual es el costo del kwh
iogann1982 [59]

Answer:

What is the cost of kwh-

Explanation:

Depende de donde estés, en México cuesta alrededor de 162,76 centavos.

espero que esto ayude

4 0
2 years ago
An automobile engine consumes fuel at a rate of 22 L/h and delivers 85 kW of power to the wheels. If the fuel has a heating valu
zepelin [54]

Answer:

Efficiency of the engine is 39.51 %

Explanation:

Mass of fuel consumed per hour = 22 L/h * 0.08 Kg/L = 17.6 Kg/h

Total Energy Consumed per hour = Mass of fuel consumed per hour * Heating  value of fuel

Total Energy Consumed per hour = 17.6 Kg/h * 44,000 KJ/Kg = 774,400 KJ/h

since, 1 KW = 3600 KJ/h

774,400KJ/h = 774,400/3600 kW = 215.1 kW

Efficiency of the engine = \frac{Power to the wheels}{Total Power}

Efficiency = 85/215.1 = 39.51 %

5 0
3 years ago
Read 2 more answers
La Patrulla Fronteriza de los Estados Unidos analiza la compra de un helicóptero nuevo para la vigilancia aérea de la frontera d
patriot [66]

Answer:

The Border Patrol of the United States analyzes the purchase of a new helicopter for the aerial surveillance of the border of New Mexico and Texas with the Mexican Republic. 4 years ago a similar helicopter was purchased at a cost of $ 140,000.00. with an interest rate of 7% per year. Calculate the single payment factor and the present value factor with the above data with the table and formula. Draw the flow chart.

Explanation:

7 0
2 years ago
Other questions:
  • A mass of 8000 kg of slightly enriched uranium (2% U-235, 98% U-238) is exposed for 30 days in a reactor operating at (6.18) hea
    5·1 answer
  • Which of the code pieces below should replace the underline?public class Test{public static void main(String[] args){Test test =
    8·1 answer
  • List the three main methods employed in dimensional analysis
    6·1 answer
  • By efficiency, we generally mean the ratio of the desired output to the required input. That is, efficiency is a measure of what
    7·1 answer
  • In a typical transmission line, the current I is very small and the voltage V is very large. A unit length of the line has resis
    8·1 answer
  • Método de Programación lineal utilizado para resolver problemas en teoría de redes?
    15·1 answer
  • Effective presentations are: Have a central message Colorful and exciting Have many messages Are influence by a setting Created
    15·2 answers
  • Which actions would the maintenance and operations crews carry out as a building is completed and preparing to open to the publi
    8·2 answers
  • Crank OA rotates with uniform angular velocity 0  4 rad/s along counterclockwise. Take OA= r= 0.5
    11·1 answer
  • True or false for the 4 questions?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!