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]
2 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]2 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
The yield of a chemical process is being studied.The two most important variables are thought to be the pressure and the tempera
anyanavicka [17]

Answer:

<u>note:</u>

<u>solution is attached in word form due to error in mathematical equation. furthermore i also attach Screenshot of solution in word due to different version of MS Office please find the attachment</u>

Download docx
7 0
3 years ago
Air at 27°C and a velocity of 5 m/s passes over the small region As (20 mm × 20 mm) on a large surface, which is maintained at T
JulsSmile [24]

Answer:

a) The maximum possible heat removal rate = 2.20w

b) Fin length = 37.4 mm

c) Fin effectiveness = 89.6

d) Percentage increase = 435%

Explanation:

See the attached file for the explanation.

5 0
2 years ago
A piston-cylinder device contains an ideal gas mixture of 3 kmol of He gas and 7 kmol of Ar gas (both gases are monatomic) at 27
lidiya [134]

Answer:

Q = 62    ( since we are instructed not to include the units in the answer)

Explanation:

Given that:

n_{HCl} = 3 \ kmol\\n_{Ar} = 7 \ k mol

T_1 = 27^0 \ C = ( 27+273)K =  300 K

P_1 = 200 \ kPa

Q = ???

Now the gas expands at constant pressure until its volume doubles

i.e if V_1 = x\\V_2 = 2V_1

Using Charles Law; since pressure is constant

V \alpha T

\frac{V_2}{V_1}  =\frac{T_2}{T_1}

\frac{2V_1}{V_1}  =\frac{T_2}{300}

T_2 = 300*2\\T_2 = 600

mass of He =number of moles of He × molecular weight of He

mass of He = 3 kg  × 4

mass of He = 12 kg

mass of Ar =number of moles of Ar × molecular weight of Ar

mass of He = 7 kg  × 40

mass of He = 280 kg

Now; the amount of  Heat  Q transferred = m_{He}Cp_{He} \delta T  + m_{Ar}Cp_{Ar} \delta T

From gas table

Cp_{He} = 5.9 \ kJ/Kg/K\\Cp_{Ar}  = 0.5203 \  kJ/Kg/K

∴ Q = 12*5.19*10^3(600-300)+280*0.5203*10^3(600-300)

Q = 62.389 *10^6

Q = 62 MJ

Q = 62    ( since we are instructed not to include the units in the answer)

5 0
3 years ago
Read 2 more answers
The term _______________refers to the science of using fluids to perform work.
Alla [95]
The term is hydraulics.
5 0
3 years ago
Read 2 more answers
Nêu đặc điểm của tín hiệu PAM rời rạc dạng lưỡng cực NRZ, RZ
zhuklara [117]

Answer:

yes it is certainly good ice cream

4 0
2 years ago
Other questions:
  • The evaporator section of a refrigeration unit consists of thin-walled, 10-mm-diameter tubes through which refrigerant passes at
    7·1 answer
  • Go online and search for information about companies that have been harmed or bankrupted by a disaster. Choose one such company
    11·1 answer
  • A banked highway is designed for traffic moving at v = 88 km/h. The radius of the curve r = 314 m. show answer No Attempt 50% Pa
    5·2 answers
  • How do I cancel my subscription
    12·2 answers
  • How are eras different from decades?
    5·1 answer
  • The motion of a particle is defined by the relation x = t3 – 6t2 + 9t + 3, where x and t are expressed in feet and seconds, resp
    12·1 answer
  • Roku internet service providet​
    11·1 answer
  • Cite another example of information technology companies pushing the boundaries of privacy issues; apologizing, and then pushing
    9·1 answer
  • What are the nine Historical periods?
    9·1 answer
  • When a company in the United States employs people in India to answer their customer service calls this is an example of
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!