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 step-up transformer has 20 primary turns and 400 secondary turns. If the primary current is 30 A, what is the secondary curren
-BARSIC- [3]
150
A
Explanation:
V
s
V
p
=
N
s
N
p

(
1
)
N
refers to the number of turns
V
is voltage
s
and
p
refer to the secondary and primary coil.
From the conservation of energy we get:
V
p
I
p
=
V
s
I
s

(
2
)
From
(
1
)
:
V
s
V
p
=
900
00
3
00
=
300
∴
V
s
=
300
V
p
Substituting for
V
s
into
(
2
)
⇒
V
p
I
p
=
300
V
p
×
0.5
∴
I
p
=
150
A
Seems a big current.
3 0
3 years ago
Alyssa works for an engineering firm that has been hired to design and supervise the construction of a highway bridge over a maj
Colt1911 [192]

Answer:

I'm going to make a list of everything you need to consider for the supervision and design of the bridge.

1. the materials with which you are going to build it.

2. the length of the bridge.

3. The dynamic and static load to which the bridge will be subjected.

4. How corrosive is the environment where it will be built.

5.wind forces

6. The force due to possible earthquakes.

7. If it is going to be built in an environment where snow falls.

8. The bridge is unique,so   the shape has a geometry that resists loads?.

9. bridge costs.

10. Personal and necessary machines.

11. how much the river grows

3 0
3 years ago
A silicon diode has a saturation current of 6 nA at 25 degrees Celcius. What is the saturation current at 100 degrees Celsius?
Illusion [34]

Answer:

0.0659 A

Explanation:

Given that :

I_{0}  =  6nA ( saturation current )

at 25°c = 300 k ( room temperature )

n = 2  for silicon diode

Determine the saturation current at 100 degrees = 373 k

Diode equation at room temperature = I = Io \frac{V}{e^{0.025*n} }

next we have to determine the value of V at 373 k

q / kT = (1.6 * 10^-19) / (1.38 * 10^-23 * 373) = 31.08 V^-1

Given that I is constant

Io = \frac{e^{0.025*2} }{31.08} =  0.0659 A

3 0
3 years ago
The y component of velocity in a steady, incompressible flow field in the xy plane is v = -Bxy3, where B = 0.4 m-3 · s-1, and x
love history [14]

Answer:

attached below

Explanation:

3 0
3 years ago
What would happen if an exposed film was accidentally placed in the fixer before being placed in the developer
Eduardwww [97]
Do you still want this answered
5 0
3 years ago
Other questions:
  • Practice Problem: Large-Particle CompositesThe mechanical properties of a metal may be improved by incorporating fine particles
    5·1 answer
  • If you add 10 J of heat to a system so that the final temperature of the system is 200K, what is the change in entropy of the sy
    9·1 answer
  • A long corridor has a single light bulb and two doors with light switch at each door.
    12·1 answer
  • A coal-fired power plant is burning bituminous coal that has an energy content of 12,000 Btu/lb. The power plant is burning the
    13·1 answer
  • You are analyzing an open-return wind tunnel that intakes air at 20 m/s and 320K. When the flow exits the wind tunnel it is movi
    14·2 answers
  • Who was the American founder and leader of the Shakers in the 1770’s who advocated equality, individual responsibility, and peac
    11·2 answers
  • It's in the picture please asap
    6·2 answers
  • Which process made making copies of technical drawings easier?
    8·1 answer
  • Why is California a good place for engineers to build suspension bridges?
    12·1 answer
  • Types of lubricants on the market include:
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!