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
Coils of various dimensions designed to introduce specified amounts of inductance into a circuit are called (a) semiconductors (
Delicious77 [7]

Answer: d) Inductors

Explanation:  Inductors are the electric component commonly known by the name of coils as well. The work done by inductors is when the electric current flows through the coils of the wire then there is production of the magnetic field. They are the component that have the inductance in particular amount according to the circuit.So, coils of various dimensions are designed to introduce specified amount of inductance  into a circuit are called inductors.

4 0
3 years ago
The Ford Fusion Hybrid SE uses hybrid fuel technology with the latest in lithium-ion battery technology to deliver more power, c
stellarik [79]

Answer:

evaluative criteria.

Explanation:

Evaluative criteria is a term in marketing that Is used when a customer decides to go for a different kind of product that is different from the one they originally had in mind because of certain attributes. These attributes could be objective in nature such as power and fuel economy or it could subjective when things like prestige and convenience are being looked at.

4 0
3 years ago
1) When you invest in stock, what are you doing?
statuscvo [17]

<u>Explanation:</u>

1) When we invest in stock it means we are investing in long term investment. It includes risk factor also.

2) We can make money from stocks by retaining them for a long period and selling them when their price rises.

3) dividends are paid out of distributable profits. Some companies provide dividends regularly which act as a regular source of income for investors.

4) Capital gain is the benefit obtained on selling a capital asset and if we face loss on selling the capital asset it results in capital loss. Capital assets are like stock, bonds, properties, etc.

7 0
3 years ago
A generator operating at 50 Hz delivers 1 pu power to an infinite bus through a transmission circuit in which resistance is igno
olga55 [171]

Answer:

critical clearing angle = 70.3°

Explanation:

Generator operating at = 50 Hz

power delivered = 1 pu

power transferable when there is a fault = 0.5 pu

power transferable before there is a fault = 2.0 pu

power transferable after fault clearance = 1.5 pu

using equal area criterion to determine the critical clearing angle

Attached is the power angle curve diagram and the remaining part of the solution.

The power angle curve is given as

= Pmax sinβ

therefore :  2sinβo = Pm

                   2sinβo = 1

                   sinβo = 0.5 pu

                   βo = sin^{-1} (0.5) = 30⁰

also ;   1.5sinβ1 = 1

               sinβ1 = 1/1.5

               β1 = sin^{-1} (\frac{1}{1.5} ) = 41.81⁰

∴ βmax = 180 - 41.81  = 138.19⁰

attached is the remaining solution

The critical clearing angle = cos^{-1} 0.3372  ≈ 70.3⁰

3 0
3 years ago
. For each of the following situations, determine if the diode below is in foward or reversebias(a) (2 points) V1 = 0 V, V2= 2V(
Mazyrski [523]

Assuming V1 is the anode and v2 the cathode (Anode is P region and Cathode is N)

Answer:

a) Reverse bias

b) Forward bias

c) Forward bias

Explanation:

Forward bias: It happens whenever the N region of the diode is more positive than the P region. Hence, the depletion zone increase ceasing the current through the circuit -> V1 -V2 < 0  

Reverse bias: It happens whenever the P region of the diode is more positive than the N region. In this case, the depletion zone begins to shrink, if enough voltage is applied current could go through the circuit -> V1 - V2 > 0

a) V = V1 - V2 = 0 - 2 = -2 -> -2 is smaller than zero therefore, we have reverse bias

b) V = V1 - V2 = 4.5 - 2.8 = 1.7 -> 1.7 is greater than zero therefore, we have forward bias

c9 V = V1 - V2 = -1 - -1.3 = 0.3 -> 0.3 is greater than zero therefore, we have forward bias

6 0
3 years ago
Other questions:
  • A sharpshooter can hit the target with a probability p=0.75. a) What is the probability that out of 10 shots she misses them all
    10·1 answer
  • A quantity of water within a piston-cylinder assembly executes a Carnot power cycle. During isothermal expansion, the water is h
    10·1 answer
  • A cylindrical specimen of a brass alloy having a length of 60 mm (2.36 in.) must elongate only 10.8 mm (0.425 in.) when a tensil
    9·1 answer
  • A charge of +2.00 μC is at the origin and a charge of –3.00 μC is on the y axis at y = 40.0 cm . (a) What is the potential at po
    5·1 answer
  • What is the weakest link in the security of an IT infrastructure? What are some of the strategies for reducing the risks?
    11·1 answer
  • THE COMPUND INTEREST ON RS 30,000AT 7% PER ANNUM IS RS 4347 THE PERIOD IN YEARS
    7·2 answers
  • Which of these methods is likely to make a product design more suitable for mass production?
    8·1 answer
  • A large plate is fabricated from a steel alloy that has a plane strain fracture toughness of 50.0 MPa-m1/2 . If, during service
    10·1 answer
  • The current through a 0.1 Henrys (H) inductor is i(t) = 10 t e^-5tA. Find the voltage across the inductor.
    10·1 answer
  • 12. How will the temperature change in a room with an open refrigerator door, once equilibrium is established
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!