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]
3 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]3 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
What are the chemical properties of metals
Grace [21]

Answer:

  • The density of metals are usually high
  • They are great conductors of heat
  • They are malleable and ductile

8 0
3 years ago
Which of the following best reflects a shield system?
Dafna11 [192]
C, because a narrow structure evacuation below surface ground isn’t the best and a structure holding forces and isn’t to do with the question at all and d doesn’t matter if there include away or not
8 0
3 years ago
why is the peak value of the rectified output less than the peak value of the ac input and by how much g
Bumek [7]

Answer:

The Peak value of the output voltage is less or lower than that of the peak value of the input voltage by 0.6V reason been that the voltage is tend to drop across the diode.

Explanation:

This is what we called HALF WAVE RECTIFIER in which the Peak value of the output voltage is less or lower than that of the peak value of the input voltage by 0.6V reason been that the voltage is tend to drop across the diode.

Therefore this is the formula for Half wave rectifier

Vrms = Vm/2 and Vdc

= Vm/π:

Where,

Vrms = rms value of input

Vdc = Average value of input

Vm = peak value of output

Hence, half wave rectifier is a rectifier which allows one half-cycle of an AC voltage waveform to pass which inturn block the other half-cycle which is why this type of rectifiers are often been used to help convert AC voltage to a DC voltage, because they only require a single diode to inorder to construct.

5 0
2 years ago
As a means of preventing ice formation on the wings of a small, private aircraft, it is proposed that electric resistance heatin
DIA [1.3K]

Answer:

Average heat flux=3729.82 W/m^{2}

Explanation:

7 0
2 years ago
When two or more simple machines are combined they form
Korvikt [17]

Answer:

Compound Machine

Explanation:

A compound machine is a type of machine that is formed from 2 or more simple machines. Fore example, a shovel is a wedge and a lever, a bike is made up of wheels and axles, screws, and levers.

3 0
3 years ago
Other questions:
  • Air at 26 kPa, 230 K, and 220 rn/s enters a turbojet engine in flight. The air mass flow rate is 25 kg/s. The compressor pressur
    6·1 answer
  • Atmospheric pressure is measured to be 14.769 psia. a. What would be the equivalent reading of a water barometer (inches of H20)
    11·1 answer
  • A_____ transducer is a device that can convert an electronic controller output signal into a standard pneumatic output. A. pneum
    13·1 answer
  • Resistors of 150 Ω and 100 Ω are connected in parallel. What is their equivalent resistance?
    13·1 answer
  • Which of the following explains the main reason to cut a piece of wood on the outside of the measurement mark?
    13·1 answer
  • A two-bus power system is interconnected by one transmission line. Bus 1 is a generator bus with specified terminal voltage magn
    6·1 answer
  • A window‐mounted air‐conditioning unit (AC) removes energy by heat transfer from a room, and rejects energy by heat transfer to
    13·1 answer
  • State three characteristic of lines of magnetic flux​
    7·2 answers
  • In a long trip what is considered a life line to take with you.
    12·1 answer
  • which type of irrigation fluid is typically used for endoscopic procedures using monopolar electrosurgery
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!