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
Why would the shear stress be considered as the momentum flux.
oksano4ka [1.4K]

Answer:

A fluid flowing along a flat plate will stick to it at the point of contact

Explanation:

and this is known as the no-slip condition. ... This is the precise reason why shear stress in a fluid can also be interpreted as the flux of momentum.

3 0
2 years ago
The settlement of foundations is typically the result of three separate occurrences that take place in the soil which provides s
evablogger [386]

Answer:

The differences are listed below

Explanation:

The differences between consolidation and compaction are as follows:

In compaction the mechanical pressure is used to compress the soil. In consolidation, there is an application of stead pressure.

In compaction, there is a dynamic load by rapid mechanical methods like tamping, rolling, etc. In consolidation, there is static and sustained pressure applied for a long time.

In compaction, the soil volume is reduced by removing air from the void. In consolidation, the soil volume is reduced by squeezing out water from the pores.

Compaction is used for sandy soil, consolidation on the other hand, is used for clay soil.

7 0
2 years ago
Read 2 more answers
Heres a question that needs to be answered fast im running out of time
earnstyle [38]

Answer:

9

Explanation:

6 0
3 years ago
Read 2 more answers
Help please if you don't know don't give wrong answer please​
mrs_skeptik [129]

4.75cm * 5.22cm is 24.795cm²

but let's do this with m² instead:

0.0475m * 0.0522m = 0.0024795

now we can compare it with the 49780 much easier.

devide. that's the <u>roughly</u> 20,000,000fold of the plot, but it's still squared, so let's take the root

so the representative fraction is 1:4,480.

the exact value is in the screens

have a nice day:)

6 0
3 years ago
Conclude from the scenario below which type of documentation Holly should use, and explain why this would be the best choice. Ho
NARA [144]

Answer:

Okay

Explanation:

7 0
3 years ago
Other questions:
  • What is the heights part of Maine?
    5·1 answer
  • Water is flowing into the top of an open cylindrical tank (which has a diameter D) at a volume flow rate of Qi and the water flo
    15·2 answers
  • Pascal's law tells us that, pressure is transmitted undiminished throughout an open container. a)- True b) False
    9·1 answer
  • Determine the magnitude of the resultant force and the moment about the origin. Note: the symbol near the 140 N-m moment are not
    15·1 answer
  • Rain falls on a 1346 acre urban watershed at an intensity of 1.75 in/hr for a duration of 1 hour. The catchment land use is 20%
    10·1 answer
  • A thick oak wall initially at 25°C is suddenly exposed to gases for which T =800°C and h =20 W/m2.K. Answer the following questi
    5·1 answer
  • The value of universal gas constant is same for all gases?<br> a) yes<br> b)No
    15·1 answer
  • An LED camping headlamp can run for 18 hours, powered by three AAA batteries. The batteries each have a capacity of 1000 mAh, an
    14·1 answer
  • How much horse power does a Lamborghini have
    6·2 answers
  • A bakery wants to determine how many trays of doughnuts it should prepare each day. Demand is normal with a mean of 15 trays and
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!