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
What is the never repeat rule
Soloha48 [4]
Don't repeat yourself (DRY, or sometimes do not repeat yourself) is a principle of software development aimed at reducing repetition of software patterns,[1] replacing it with abstractions or using data normalization to avoid redundancy.
4 0
3 years ago
What causes the moon to be illuminated? PLEASE HELP MEH ILL GIVE YOU BRAINLEIST!!
Likurg_2 [28]

Answer:

D Reflection

Explanation:

It reflects the light from the sun. Then when the earth gets in the way, it casts a shadow causing crescent moons.

7 0
3 years ago
Discoloration on walls, work surfaces, ceilings, walls, and pipes may indicate a leak that is causing you to waste raw materials
suter [353]

Answer:

True :)

Explanation:

If this is a true or false question.

6 0
3 years ago
Question 7.1: Two possible overhead valve combustion chambers are being considered – the first has two valves; the second has fo
AleksandrR [38]

Answer:

1) The adoption of the second design we can see that the total valve perimeter is increased by 60.8%

2) Increase in flow are : 29%

3) Additional benefits in using 4 valves per cylinder:

a)For the purpose of controlling the combustion process, the inlet valves will give more flexibility

b) There is a larger valve throat areas for the flow of gas

Explanation:

1) Perimeter of the first possible overhead valve combustion chamber with two valves:

P₂ = πd = π × 23 = 72.26mm

Perimeter of the second possible overhead valve combustion chamber with four valves:

P₄ = π2d = π × 18.5 × 2 = 116.24 mm

If second design is adopted, percentage increase = ((P₄ - P₂)/P₂)×100

     = ((116.24 - 72.26)/72.26)×100 = 0.6086 ×100 = 60.86%

Therefore, the total valve perimeter is shown to have increased by 60.8%

2) Formula for flow Area (A) = P × L = πkd²

Area of the first possible overhead valve combustion chamber with two valves: A₂ = πkd² = πk(23)² = 1662k mm²

Area of the first possible overhead valve combustion chamber with four valves: A₄ = πkd² = 2πk(18.5)² = 2150k mm²

The percentage increase in flow area: ((A₄ - A₂)/A₄)×100 = ((2150 - 1662)/2150)×100 = 29%

3) The additional benefits of using are:

a) For the purpose of controlling the combustion process, the inlet valves will give more flexibility

b) There is a larger valve throat areas for the flow of gas

           

7 0
3 years ago
What’s the difference between quality and quantity
Lesechka [4]
Quality is how good something is. Like how good the material is. Like the quality of the IPhone X is better than the quality of the iPhone 6s + because it has more features and can sustain better hold
Quantity is how much. Like the quantity of the m&ms were split evenly.
I dont know exactly if that makes sense but there ya go
YW!
4 0
3 years ago
Read 2 more answers
Other questions:
  • Air (cp = 1.005 kJ/kg·°C) is to be preheated by hot exhaust gases in a cross-flow heat exchanger before it enters the furnace. A
    9·1 answer
  • In what situation you would prefer to use a successive approximation ADC over flash ADC?
    13·1 answer
  • A company that produces footballs uses a proprietary mixture of ideal gases to inflate their footballs. If the temperature of 23
    11·1 answer
  • The diameter of an extruder barrel = 85 mm and its length = 2.00 m. The screw rotates at 55 rev/min, its channel depth = 8.0 mm,
    5·1 answer
  • Name the ferrous metal that most workshop tools are made from??
    12·2 answers
  • YO CUTIE! HELP MEEEEEE! Hazardous waste is a category that includes all of the following EXCEPT
    13·2 answers
  • An add tape of 101 ft is incorrectly recorded as 100 ft for a 200-ft distance. What is
    6·1 answer
  • Which of the following relationship types most closely resembles the relationship between the national importance of residential
    15·1 answer
  • Technician A says that fuel filler caps with pressure and vacuum vents are used with EVAP system fuel tanks. Technician B says t
    5·1 answer
  • A school bus with its flashing red signals on has stopped on a non-divided highway; you must?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!