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
1. (16 points) True or False, one point each, Write down F (false) or T (true). ___ (01) In a mechanical design, it is recommend
nikitadnepr [17]

Answer:

True

Explanation:

I looked it up

3 0
3 years ago
The water behind Hoover Dam in Nevada is 221 m higher than the Colorado River below it. At what rate must water pass through the
dexar [7]

Answer:

23.06262m^3/s

Explanation:

The volume flow rate of the water is determined from the needed power output and the elevation difference:

Where, height (h) =221m, power(w)=50MW=50*10^6w

Density of water (ρ)=1000kg/m^3

Efficiency of turbine(η)=100%=1

V=W/ρηgh

=50*10^6m^3/(1)*(1000)*(9.81)*(221)s=23.06262m^3/s

3 0
3 years ago
List and explain the major features that the following building designs must have to relate directly to their functions.
Lunna [17]

Answer:

size, design

Explanation:

''.''

7 0
3 years ago
What is measurement in term of electrical engineering ​
laila [671]

Explanation:

voltage, current and resistance are the Volt [ V ], Ampere [ A ] and Ohm [ Ω ]

3 0
3 years ago
Valves on steam lines are commonly encountered and you should know how they work. For most valves, the change in velocity of the
damaskus [11]

Answer:

The question is not complete. So, I try to find the complete question & complete answer of the question is given in attached file.

Explanation:

5 0
4 years ago
Other questions:
  • Oliver is designing a new children's slide to increase speed at which a child can descend.His first design involved steel becaus
    6·1 answer
  • The purification of hydrogen gas is possible by diffusion through a thin palladium sheet. Calculate the number of kilograms of h
    15·1 answer
  • The two stroke engines has greater cooling and lubrication requirements than four stroke engine. Explain why?
    14·1 answer
  • Alberta Einstein teaches a business class at Podunk University. To evaluate the students in this class, she has given three test
    13·1 answer
  • If you embed a multimedia file, you reduce the bandwidth your Web site must manage.
    7·1 answer
  • When all network cables connect to one central point the network topology is typically referred to as a(n)_______
    6·1 answer
  • What do you mean by searching?​
    8·1 answer
  • Catch of the day:
    9·2 answers
  • Explain the proper uses of shop equipment. (explain to me how to use 3 pieces of shop equipment.)
    7·1 answer
  • What is an advantage of using a fully integrated cloud-based data analytics platform?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!