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
Sometimes, steel studs may not be used on outside walls because they are?
Helen [10]

Answer:

We can describe 15×-10 as an expression. we would describe 6×-2< 35 as an...

Explanation:

We can describe 15×-10 as an expression. we would describe 6×-2< 35 as an...

6 0
3 years ago
List all possible fracture mechanisms under which the unidirectional composites fail. Briefly explain and describe the related m
professor190 [17]

Answer:

Ususushehehehhuuiiïbbb

Explanation:

Yyshehshehshshsheyysysueueue

7 0
2 years ago
The capacity of a battery is 1800 mAh and its OCV is 3.9 V. a) Two batteries are placed in series. What is the combined battery
Lynna [10]

Answer:

capacity  = 0.555 mAh

capacity  = 3600 mAh

Explanation:

given data

battery = 1800 mAh

OCV = 3.9 V

solution

we get here capacity when it is in series

so here Q = 2C  

capacity  = 2 × ampere × second   ...............1

put here value and we get

and 1 Ah = 3600 C

capacity  = \frac{2}{3600}

capacity  = 0.555 mAh

and

when it is in parallel than capacity will be

capacity = Q1 +Q2   ...............2

capacity  = 1800 + 1800

capacity  = 3600 mAh

3 0
3 years ago
Which principle of the software engineering code of ethics has gilbert violated?.
Yuki888 [10]

Answer:

Judgement

Explanation:

Gilbert is required by the Judgement Principle to "disclose those conflicts of interest that cannot reasonably be avoided or escaped." Since Gilbert professionally believes that the software meets specifications, secures documents, and satisfies user requirements, it is not clear if he violated any principle. However, he could have informed his client of his interest in the software and also presented other software packages of different companies from which the client could make its independent choice.

7 0
3 years ago
Sketch T-s and p-v diagrams for the Diesel cycle.
labwork [276]

Answer:

Diesel cycle:

    All diesel engine works on diesel cycle.It have four processes .These four processes are as follows

1-2.Reversible adiabatic compression

2-3.Heat addition at constant pressure

3-4.Reversible adiabatic expansion

4-1.Heat addition at constant volume

When air inters in the piston cylinder after that it compresses and gets heated due to compression after that heat addition take place at constant pressure after that power is produces when piston moves to bottom dead center.

From the diagram of P-v And T-s we can understand so easily.

3 0
3 years ago
Other questions:
  • What do humans breathe
    8·2 answers
  • Why is concrete on its own not a good material to use
    6·1 answer
  • A sports car has a drag coefficient of 0.29 and a frontal area of 20 ft2, and is travelling at a speed of 120 mi/hour. How much
    8·1 answer
  • For a bronze alloy, the stress at which plastic deformation begins is 266 MPa and the modulus of elasticity is105 GPa.
    15·1 answer
  • A tension test is carried out on an Al alloy specimen which has an original diameter of 0.505 in and an original gauge length of
    15·1 answer
  • When an emergency vehicle approaches you from in front or behind you, what should you do?
    14·1 answer
  • (4 points) What field of work generally requires (a) an engineer to have a Professional Engineer
    11·1 answer
  • What is a beam on a bridge? what does it do?
    6·1 answer
  • A 9 -slug mass hangs by a rope from the ceiling. Using the standard value of gravitational acceleration g = 32.2 fts 2, what is
    12·1 answer
  • Which of the following is critical when performing maintenance?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!