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
Leona [35]
4 years ago
8

The longest_word function is used to compare 3 words. It should return the word with the most number of characters (and the firs

t in the list when they have the same length). Fill in the blank to make this happen.
Engineering
1 answer:
NARA [144]4 years ago
4 0

Answer:

len(word2) >= len(word1) and len(word2) >= len(word3):

Question with blank is below

def longest_word(word1,word2,word3):

   if len(word1) >= len(word2) and len(word1) >= len(word3):

       word = word1

   elif _________________________________________

       word = word2

   else:

       word = word3

   return word

print(longest_word("chair","couch","table"))

print(longest_word("bed","bath","beyond"))

print(longest_word("laptop","notebook","desktop"))

print(longest_word("hi","cat","Cow"))

Explanation

In line 1 of the code word1, word2, and word3 are the parameters used to for the defining the longest_word function. They will be replaced by 3 words to be compared. The code that is filled in the blank is len(word2) >= len(word1) and len(word2) >= len(word3): It is a conditional statement that is true only if the number of characters in the string of word2 is greater than or equal to word1 and word2 is greater than that of word3 .

You might be interested in
g What property of flip-flops distinguishes them from latches? A. Flip-flops will never change state more than once per clock cy
kogti [31]

Answer:

A. Flip-flops will never change state more than once per clock cycle, but latches can change state multiple times during a clock pulse.

Explanation:

Even though both flip-flops and latches are sequential circuits (which means that the present outputs don´t depend on the current value of the inputs and outputs but on the previous ones, so it is said that these circuits have memory), the flip-flops state changes are only valid when a clock pulse is present, which means that it can´t change state more than once per clock cycle .

Latches, instead, change state no sooner a input level changes, so it doesn´t need for a clock pulse to be present.

5 0
3 years ago
What process is used to remove collodal and dissolved organic matter in waste water ​
Juli2301 [7.4K]

Answer:

Aerobic biological treatment process

Explanation:

Aerobic biological treatment process in which micro-organisms, in the presence of oxygen, metabolize organic waste matter in the water, thereby producing more micro-organisms and inorganic waste matter like CO₂, NH₃ and H₂O.

3 0
3 years ago
A long aluminum wire of diameter 3 mm is extruded at a temperature of 280°C. The wire is subjected to cross air flow at 20°C at
Musya8 [376]

Answer:

Explanation:

Given:

Diameter of aluminum wire, D = 3mm

Temperature of aluminum wire, T_{s}=280^{o}C

Temperature of air, T_{\infinity}=20^{o}C

Velocity of air flow V=5.5m/s

The film temperature is determined as:

T_{f}=\frac{T_{s}-T_{\infinity}}{2}\\\\=\frac{280-20}{2}\\\\=150^{o}C

from the table, properties of air at 1 atm pressure

At T_{f}=150^{o}C

Thermal conductivity, K = 0.03443 W/m^oC; kinematic viscosity v=2.860 \times 10^{-5} m^2/s; Prandtl number Pr=0.70275

The reynolds number for the flow is determined as:

Re=\frac{VD}{v}\\\\=\frac{5.5 \times(3\times10^{-3})}{2.86\times10^{-5}}\\\\=576.92

sice the obtained reynolds number is less than 2\times10^5, the flow is said to be laminar.

The nusselt number is determined from the relation given by:

Nu_{cyl}= 0.3 + \frac{0.62Re^{0.5}Pr^{\frac{1}{3}}}{[1+(\frac{0.4}{Pr})^{\frac{2}{3}}]^{\frac{1}{4}}}[1+(\frac{Re}{282000})^{\frac{5}{8}}]^{\frac{4}{5}}

Nu_{cyl}= 0.3 + \frac{0.62(576.92)^{0.5}(0.70275)^{\frac{1}{3}}}{[1+(\frac{0.4}{(0.70275)})^{\frac{2}{3}}]^{\frac{1}{4}}}[1+(\frac{576.92}{282000})^{\frac{5}{8}}]^{\frac{4}{5}}\\\\=12.11

The covective heat transfer coefficient is given by:

Nu_{cyl}=\frac{hD}{k}

Rewrite and solve for h

h=\frac{Nu_{cyl}\timesk}{D}\\\\=\frac{12.11\times0.03443}{3\times10^{-3}}\\\\=138.98 W/m^{2}.K

The rate of heat transfer from the wire to the air per meter length is determined from the equation is given by:

Q=hA_{s}(T_{s}-T{\infin})\\\\=h\times(\pi\timesDL)\times(T_{s}-T{\infinity})\\\\=138.92\times(\pi\times3\times10^{-3}\times1)\times(280-20)\\\\=340.42W/m

The rate of heat transfer from the wire to the air per meter length is Q=340.42W/m

6 0
3 years ago
A square silicon chip (k = 152 W/m·K) is of width 7 mm on a side and of thickness 3 mm. The chip is mounted in a substrate such
Harrizon [31]

Answer:

The steady-state temperature difference is 2.42 K

Explanation:

Rate of heat transfer = kA∆T/t

Rate of heat transfer = 6 W

k is the heat transfer coefficient = 152 W/m.K

A is the area of the square silicon = width^2 = (7/1000)^2 = 4.9×10^-5 m^2

t is the thickness of the silicon = 3 mm = 3/1000 = 0.003 m

6 = 152×4.9×10^-5×∆T/0.003

∆T = 6×0.003/152×4.9×10^-5 = 2.42 K

7 0
4 years ago
In fuel oil piping systems, all exterior above-grade fill piping shall be __________ when tanks are abandoned or removed.
castortr0y [4]

Answer:

Removed

Hope this Helps!

6 0
3 years ago
Other questions:
  • The gradual and uniform cooling of glass that has been heated in order to relieve random internal stresses is... Group of answer
    5·1 answer
  • The man (75 Kg) is climbing up the rope with acceleration 0.25 m/s2 relative to the rope. MA = 80 Kg. What is the rope tension a
    7·1 answer
  • Kim is assigned to write an important company report with Philip and Tara, her coworkers. Because Kim prefers to work alone, she
    13·1 answer
  • Put these expressions in a small program that will demonstrate whether they are true or false. Paste the code, and output from t
    10·1 answer
  • A generator is to be driven by a small Pelton wheel with a head of 91.5m at inlet to the nozzle and discharge of 0.04m^3/s. The
    6·1 answer
  • Of the core elements of successful safety and health programs, Management Leadership, Worker Participation, and what else relate
    10·2 answers
  • Why is it important to have knowledge on abbreviations, sign and symbols in masonry servicing job in the construction business s
    10·1 answer
  • A gas turbine power plant is being designed using an air-standard Brayton cycle. Air enters the compressor with a volumetric flo
    11·1 answer
  • A 10 kg mass is lifted to a height of 2 m What is the potiental energy at this position
    13·1 answer
  • Technician A says that the definition of torque is how far the crankshaft twists in degrees.Technician B says that torque can re
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!