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
Give me uses of a grinding machine in agriculture.
Tju [1.3M]

Answer:

The grinding machine is used for roughing and finishing flat, cylindrical, and conical surfaces; finishing internal cylinders or bores; forming and sharpening cutting tools; snagging or removing rough projections from castings and stampings; and cleaning, polishing, and buffing surfaces.

4 0
3 years ago
Heating of Oil by Air. A flow of 2200 lbm/h of hydrocarbon oil at 100°F enters a heat exchanger, where it is heated to 150°F by
irakobra [83]

Answer:

2062 lbm/h

Explanation:

The air will lose heat and the oil will gain heat.

These heats will be equal in magnitude.

qo = -qa

They will be of different signs because one is entering iits system and the other is exiting.

The heat exchanged by oil is:

qo = Gp * Cpo * (tof - toi)

The heat exchanged by air is:

qa = Ga * Cpa * (taf - tai)

The specific heat capacity of air at constant pressure is:

Cpa = 0.24 BTU/(lbm*F)

Therefore:

Gp * Cpo * (tof - toi) = Ga * Cpa * (taf - tai)

Ga = (Gp * Cpo * (tof - toi)) / (Cpa * (taf - tai))

Ga = (2200 * 0.45 * (150 - 100)) / (0.24 * (300 - 200)) = 2062 lbm/h

5 0
3 years ago
What should -7/56 BE DIVIDE TO GET -1/8​
aivan3 [116]

Answer:

7/7

Explanation:

7/56 ÷1

7/56÷ 7/7

7/56 ×7/7

1/8

5 0
3 years ago
Read 2 more answers
2. What is an important aspect of the American free enterprise system that encourages people to
rusak2 [61]
Have a positive mindset and attitude
7 0
4 years ago
Read 2 more answers
A transmission line (TL) of length L and conductance per unit length G' is connected to an ideal constant voltage generator V. T
Andru [333]

Answer:

The Current will decrease by a factor of 2

Explanation:

Given the conditions, it should be noted that the current in the circuit is determined by the LOAD. In other words, the amount of current generator will be producing depends upon the load connected to it.

Now, as the question says, the load is reduced to half its original value, we can write:

P1 = \sqrt{3} (V) (I1) Cos\alpha ----- (1)

P2 = \sqrt{3} (V) (I2) Cos\alpha\\

Since, P2 = P1/2,

P1/2 = \sqrt{3} (V) (I2) Cos\alpha ----- (2)\\

Dividing equations (1) and (2), we get,

P1 / (P1/2) = I1/ I2

I2 = I1 / 2\\

Hence, it is proved that the current in the transmission line will decrease by a factor of 2 when load is reduced to half.

7 0
3 years ago
Other questions:
  • A fluid flows steadily through a pipe with a uniform cross sectional area. The density of the fluid decreases to half its initia
    6·1 answer
  • How do I calculate the gear ratio​
    6·1 answer
  • Burn in hell i watched your stupid video and i still could not get the answer
    14·1 answer
  • What's the difference between a GED and a Diploma?
    12·1 answer
  • Ayuda con este problema de empuje y principio de arquimedes.
    6·1 answer
  • Realize the function f(a, b, c, d, e) = Σ m(6, 7, 9, 11, 12, 13, 16, 17, 18, 20, 21, 23, 25, 28)using a 16-to-1 MUX with control
    13·1 answer
  • Which of the following is NOT a true statement about construction drawings?
    5·1 answer
  • Based on the scenario, which type of engineering identifies Greg's role in Ethiopia?
    15·1 answer
  • Which type of artificial intelligence (ai) can repeatedly perform tasks of limited scope?
    8·1 answer
  • when a unit load is secured to a pallet, it is more difficult for pilferage to take place. true false
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!