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 vertical pole consisting of a circular tube of outer diameter 127 mm and inner diameter 115 mm is loaded by a linearly varying
Anna [14]

Maximum shear stress in the pole is 0.

<u>Explanation:</u>

Given-

Outer diameter = 127 mm

Outer radius,r_{2} = 127/2 = 63.5 mm

Inner diameter = 115 mm

Inner radius, r_{1} = 115/2 = 57.5 mm

Force, q = 0

Maximum shear stress, τmax = ?

 τmax  = \frac{4q}{3\pi } (\frac{r2^2 + r2r1 + r1^2}{r2^4 - r1^4} )

If force, q is 0 then τmax is also equal to 0.

Therefore, maximum shear stress in the pole is 0.

3 0
3 years ago
The capacity of a battery is 1800 mAh and its OCV is 3.9 V. a) Two batteries are placed in series. What is the combined battery
Lynna [10]

Answer:

capacity  = 0.555 mAh

capacity  = 3600 mAh

Explanation:

given data

battery = 1800 mAh

OCV = 3.9 V

solution

we get here capacity when it is in series

so here Q = 2C  

capacity  = 2 × ampere × second   ...............1

put here value and we get

and 1 Ah = 3600 C

capacity  = \frac{2}{3600}

capacity  = 0.555 mAh

and

when it is in parallel than capacity will be

capacity = Q1 +Q2   ...............2

capacity  = 1800 + 1800

capacity  = 3600 mAh

3 0
3 years ago
Let f(t) be an arbitrary signal with bandwidth Ω. Determine the minimum sampling frequencies ωs needed to sample the following a
disa [49]

Answer:

See explaination

Explanation:

We can describr Aliasing as a false frequency which one get when ones sampling rate is less than twice the frequency of your measured signal.

please check attachment for the step by step solution of the given problem.

7 0
3 years ago
WHICH ONE DO YOU LIKE *CREDIT 2 sbrianna3606*
RSB [31]

Answer:

first one, rest are okay ig.....

Explanation:

6 0
2 years ago
Heather is troubleshooting a computer at her worksite. She has interviewed the computer’s user and is currently trying to reprod
Luba_88 [7]

Answer:

The correct option is A

Explanation:

Heather is trying to establish a theory of probable cause. In this step of the troubleshooting process, the person troubleshooting questions the obvious and then test the theory or response given by the user to really determine the cause. Once confirmation of this theory has been achieved, the troubleshooter then tries to establish a resolution to the problem. However in the event whereby the theory is not confirmed, the troubleshooter then tries to establish a new theory.

8 0
3 years ago
Other questions:
  • A dielectric material, such as Teflon®, is placed between the plates of a parallel-plate capacitor without altering the structur
    10·1 answer
  • When designing a car that runs on wind or Air car . can you tell me the details for the following points Compressed Air Engine:
    8·1 answer
  • 10. What does a profile of a river from its headwaters to its mouth typically show?
    13·1 answer
  • A 0.25in diameter steel rod BC is securely attached between two identical 1in diameter copper rods (AB and CD). Find the torque
    11·1 answer
  • If a lever operates at a mechanical disadvantage, it means that the ________.
    9·2 answers
  • Air enters a cmpressor at 20 deg C and 80 kPa and exits at 800 kPa and 200 deg C. The power input is 400 kW. Find the heat trans
    14·1 answer
  • Select the correct answer. Which statement best describes a hydrogen fuel cell? A This device uses bioethanol as an additive to
    9·2 answers
  • A wooden pallet carrying 540kg rests on a wooden floor. (a) a forklift driver decides to push it without lifting it.what force m
    8·1 answer
  • 3. If nothing can ever be at absolute zero, why does the concept exist?
    8·1 answer
  • A thin aluminum sheet is placed between two very large parallel plates that are maintained at uniform temperatures T1 = 900 K, T
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!