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
How did studying pagodas help engineers create earthquake-proof structures in modern society?A. Engineers learned that the desig
Mila [183]

D cuz i took the test

7 0
3 years ago
The following are the results of a sieve analysis. U.S. sieve no. Mass of soil retained (g) 4 0 10 18.5 20 53.2 40 90.5 60 81.8
il63 [147K]

Answer:

a.)

US Sieve no.                         % finer (C₅ )

4                                                  100

10                                                95.61

20                                               82.98

40                                               61.50

60                                               42.08

100                                              20.19

200                                              6.3

Pan                                               0

b.) D10 = 0.12, D30 = 0.22, and D60 = 0.4

c.) Cu = 3.33

d.) Cc = 1

Explanation:

As given ,

US Sieve no.             Mass of soil retained (C₂ )

4                                            0

10                                          18.5

20                                         53.2

40                                         90.5

60                                         81.8

100                                        92.2

200                                       58.5

Pan                                        26.5

Now,

Total weight of the soil = w = 0 + 18.5 + 53.2 + 90.5 + 81.8 + 92.2 + 58.5 + 26.5 = 421.2 g

⇒ w = 421.2 g

As we know that ,

% Retained = C₃ = C₂×\frac{100}{w}

∴ we get

US Sieve no.               % retained (C₃ )               Cummulative % retained (C₄)

4                                            0                                           0

10                                          4.39                                      4.39

20                                         12.63                                     17.02

40                                         21.48                                     38.50

60                                         19.42                                     57.92

100                                        21.89                                     79.81

200                                       13.89                                     93.70

Pan                                        6.30                                      100

Now,

% finer = C₅ = 100 - C₄

∴ we get

US Sieve no.               Cummulative % retained (C₄)          % finer (C₅ )

4                                                     0                                          100

10                                                  4.39                                      95.61

20                                                 17.02                                     82.98

40                                                 38.50                                    61.50

60                                                 57.92                                    42.08

100                                                79.81                                     20.19

200                                                93.70                                   6.3

Pan                                                 100                                        0

The grain-size distribution is :

b.)

From the diagram , we can see that

D10 = 0.12

D30 = 0.22

D60 = 0.12

c.)

Uniformity Coefficient = Cu = \frac{D60}{D10}

⇒ Cu = \frac{0.4}{0.12} = 3.33

d.)

Coefficient of Graduation = Cc = \frac{D30^{2}}{D10 . D60}

⇒ Cc = \frac{0.22^{2}}{(0.4) . (0.12)} = 1

3 0
2 years ago
Which is NOT part of the clutch assembly?
Vanyuwa [196]

Answer

pressure plate

Explanation:Not for sure

8 0
3 years ago
Consider the problem of oxygen transfer from the interior lung cavity, across the lung tissue, to the network of blood vessels o
aalyn [17]

Answer:

See attached images

8 0
3 years ago
Using benefit-cost ratio analysis, determine which one of the three mutually exclusive alternatives should be selected. Each alt
anzhelika [568]
Hamborger hamborger hamborger hamborger
8 0
2 years ago
Other questions:
  • You find a publication from a research laboratory that identifies a new catalyst for ammonia synthesis. The article contains the
    6·1 answer
  • Which of the following statements do not correctly describe pull manufacturing? (1). Material flow is determined by the need of
    8·1 answer
  • Find the mass if the force is 18 N and the acceleration is 2 m/s2
    8·2 answers
  • Is a 68.75 and a 70 a pass in 5th grade?
    10·2 answers
  • Water flows at a rate of 10 gallons per minute in a new horizontal 0.75?in. diameter galvanized iron pipe. Determine the pressur
    8·1 answer
  • How to walk a dog dududududududududesssss
    6·2 answers
  • In c the square root of a number N can be approximated by repeated calculation using the formula NG = 0.5(LG + N/LG) where NG st
    14·1 answer
  • Suppose to build RSA crypto system you picked primes "p" and "q" as 3 and 7 and "e" as 5 what are the public and private keys? W
    11·1 answer
  • I need ideas of usernames for a 2021 Jeep Wrangler Rubicon!!
    15·1 answer
  • Two technicians are discussing relays. Technician A says that relays can fail because the relay winding is open. Technician B sa
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!