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
How does the clearance volume affect the efficiency of the Otto cycle?
eduard

Answer:

Explanation:

A smaller clearance volume means a higher compression. A higher compression means better thermal efficiency. However a compression ratio too high might be troublesome, as it can cause accidental ignition of the fuel-air mix. This is the reason why Otto cycle engines have lower compressions that Diesel engines. In a Diesel engine the mix ignites by compression instead of a spark.

7 0
3 years ago
Differences between acidic and basic Bessemer process​
dybincka [34]

Answer:

In the acid processes, deoxidation can take place in the furnaces, leaving a reasonable time for the inclusions to rise into the sla*g and so be removed before casting. Whereas in the basic furnaces, deoxidation is rarely carried out in the presence of the sla*g, otherwise phosphorus would return to the metal.

5 0
2 years ago
If a lever operates at a mechanical disadvantage, it means that the ________.
alekssr [168]

Answer:

The correct answer is option 'B': Load is far from fulcrum and the effort is applied near the fulcrum

Explanation:

A lever works on the principle of balancing of torques. The torque about the fulcrum by the load should be equal to the torque by the applied effort. Since we know that the torque is proportional to both the force and the distance it is applied from the distance from the axis of rotation. A lever is used when we need to lift a heavy load by utilizing this effect of the lever arm.

A mechanical disadvantage occurs when we are not able to lift the weight easily due to the fact we apply effort near the fulcrum.

4 0
3 years ago
Read 2 more answers
name the three exposure techniques in photolithography. what are the alternatives to photolithography in ic processing?
zhenek [66]

The three exposure techniques in photolithography are:

  • Contact
  • Proximity
  • Projection

Alternatives to photolithography in IC processing include;

  • X-ray
  • UV
  • Ion, and
  • Electron lithography

<h3>What is Photolithography?</h3>

Photolithography is a term in integrated circuit development that describes the patterned films that are formed when a beam of light falls on a substance.

This phenomenon protects the surface of sensitive materials such as glass during some operations like etching. UV and X-rays can be used for this purpose.

Learn more about photolithography here:

brainly.com/question/13650094

#SPJ11

6 0
2 years ago
A fatigue test was conducted in which the mean stress was 90 MPa (13050 psi), and the stress amplitude was 190 MPa (27560 psi).
Gwar [14]

Answer:

a) 280MPa

b) -100MPa

c) -0.35

d) 380 MPa

Explanation:

GIVEN DATA:

mean stress \sigma_m = 90MPa

stress amplitude \sigma_a = 190MPa

a) \sigma_m =\frac{\sigma_max+\sigma_min}{2}

    90 =\frac{\sigma_{max}+\sigma_{min}}{2} --------------1

\sigma_a =\frac{\sigma_{max}-\sigma_{min}}{2}

   190 = \frac{\sigma_{max}-\sigma_{min}}{2} -----------2

solving 1 and 2 equation we get

\sigma_{max} = 280MPa

b) \sigma_{min} = - 100MPa

c)

stress ratio=\frac{\sigma_{min}}{\sigma_{max}}

=\frac{-100}{280} = -0.35

d)magnitude of stress range

                      =(\sigma_{max} -\sigma_{min})

                       = 280 -(-100) = 380 MPa

3 0
3 years ago
Other questions:
  • A block is sliding on a level surface of varying materials, and so its effective coefficient of friction is variable, 0.1t, wher
    6·1 answer
  • Let Deterministic Quicksort be the non-randomized Quicksort which takes the first element as a pivot, using the partition routin
    13·1 answer
  • Which type of design does not need special care for the placement of dimensions?
    5·1 answer
  • n open feedwater heater operates at steady state with liquid water entering inlet 1 at 10 bar, 50°C. A separate stream of steam
    8·1 answer
  • 37. In ______ combination of drugs, the effects of one drug cancel or diminish
    12·1 answer
  • The Hoover Dam is 221 m tall and 379 m wide. Approximating it as a flat plate, determine the effective resultant force on the da
    6·1 answer
  • In a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their
    8·1 answer
  • The thermal energy is carried by electromagnetic waves
    12·1 answer
  • What do you think causes the differences in the properties of oxygen gas (O2) and ozone (O3)? the space between the atoms the ra
    9·1 answer
  • The first thing you should do is develop a ____________________ to determine what vehicle you can afford.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!