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
A student lives in an apartment with a floor area of 60 m2 and ceiling height of 1.8 m. The apartment has a fresh (outdoor) air
USPshnik [31]

Answer:

4

Explanation:

5 0
2 years ago
Guys, can you rate this toolbox, please. It is my DT project, made for car trips, what do you think of the idea/design/usability
Maurinko [17]

Answer:

Honestly overall i think it looks fantastic

Explanation:

It looks like some really nice clean craftsmanship and i love the use of some different colors for some drawers to make it pop. the only con that i can possibly think of is that with it being wood and you moving it from place to place, some rubber feet or something that would prevent it from scratching/damaging anything else if it doesn't already (cant really see under it). other then that one thing i think it looks really good. well done.

3 0
3 years ago
An energy system can be approximated to simply show the interactions with its environment including cold air in and warm air out
Elenna [48]

Answer: The energy system related to your question is missing attached below is the energy system.

answer:

a) Work done = Net heat transfer

  Q1 - Q2 + Q + W = 0

b)  rate of work input ( W ) = 6.88 kW

Explanation:

Assuming CPair = 1.005 KJ/Kg/K

<u>Write the First law balance around the system and rate of work input to the system</u>

First law balance ( thermodynamics ) :

Work done = Net heat transfer

Q1 - Q2 + Q + W = 0 ---- ( 1 )

rate of work input into the system

W = Q2 - Q1 - Q -------- ( 2 )

where : Q2 = mCp T  = 1.65 * 1.005 * 293 = 485.86 Kw

             Q2 = mCp T = 1.65 * 1.005 * 308 = 510.74 Kw

              Q = 18 Kw

Insert values into equation 2 above

W = 6.88 Kw

5 0
2 years ago
What is the measurement below?
Bess [88]

Explanation:

इसिसिसिसैस्स्स्स्स्स्स्स्स्स्सूस्सोस्स्स्स्स्स

8 0
2 years ago
¿Qué áreas del conocimiento me pueden<br> aportar a la ejecución del proyecto?
allsm [11]

Answer:

la escuela,en casa y listo...............

8 0
3 years ago
Other questions:
  • What are the seven problem solving steps?
    12·1 answer
  • I need help!!! Because this is due
    14·2 answers
  • A light pressure vessel is made of 2024-T3 aluminum alloy tubing with suitable end closures. This cylinder has a 90mm OD, a 1.65
    8·1 answer
  • all of the following are steps in the problem solving process except a. try, b. reflect, c. debug, d. define
    11·1 answer
  • A flashed steam geothermal power plant is located where underground hot water is available as saturated liquid at 700 kPa. The w
    14·1 answer
  • How long does it take to get a master's degree in Mechanical engineering?
    12·1 answer
  • Poems that focus on one image usually have what purpose? PLEASE HELP MEH!!
    7·2 answers
  • A solid steel shaft ABCDE turns freely in bearings at points A and E. The shaft is driven by the gear at C, which applies a torq
    14·1 answer
  • Technician A that shielding gas nozzles may have different shapes. Technician B says that gelding gas nozzles is attached to the
    8·1 answer
  • assuming complementary inputs are available, the minimum number of transistors needed to realize a two input xor gate is:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!