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
The Torricelli's theorem states that the (velocity—pressure-density) of liquid flowing out of an orifice is proportional to the
Sergeeva-Olga [200]

Answer:

The correct answer is 'velocity'of liquid flowing out of an orifice is proportional to the square root of the 'height'  of liquid above the center of the orifice.

Explanation:

Torricelli's theorem states that

v_{exit}=\sqrt{2gh}

where

v_{exit} is the velocity with which the fluid leaves orifice

h is the head under which the flow occurs.

Thus we can compare the given options to arrive at the correct answer

Velocity is proportional to square root of head under which the flow occurs.

4 0
3 years ago
A car is traveling at sea level at 78 mi/h on a 4% upgrade before the driver sees a fallen tree in the roadway 150 feet away. Th
Dmitrij [34]

Answer: V = 47.7 mi/hr

Explanation:

first we calculate elements of aero-dynamic resistance

Ka = p/2 * CD * A.f

p is the density of air(0.002378 slugs/ft^3) for zero altitude, CD is the drag coefficient(0.35) and A.f is the front region of the vehicle

so we substitute

Ka = 0.002378/2 * 0.35 * 18

Ka = 0.00749

Now we calculate the final speed of the vehicle (V2) using the relation;

S = (YbW/2gKa)In[ (UW + KaV1^2 + FriW ± Wsinθg) / (UW + KaV2^2 + FriW ± Wsinθg)

so

WE SUBSTITUTE

150 = (1.04 * 2700 / 2 * 32.2 * 0.0075) In [(0.8 * 2700 + 0.0075 *(78mil/hr * 5280ft/1min * 1hr/3600s)^2 + 0.017 * 2700 ± 2700 * 0.04) / (0.8 * 2700 + 0.0075 * V2^2 + 0.017 * 2700 ± 2700 * 0.04)]

150 = (2808/0.483) In [(2160 + 98.16 + 153.9) / ( 2160 + 0.0075V2^2 + 153.9)]

150 = 5813.66 In [ (2160 + 98.16 + 153.9) / ( 2160 + 0.0075V2^2 + 153.9)]

divide both sides by 5813.66

0.0258 = In [ (2412.06) / ( 0.0075V2^2 + 2313.9)]

take the e^ of both side

e^0.0258 = (2412.06) / ( 0.0075V2^2 + 2313.9)

1.0261 = (2412.06) / ( 0.0075V2^2 + 2313.9)]

(0.0075V2^2 + 2313.9) = 2412.06 / 1.0261

(0.0075V2^2 + 2313.9) = 2350.7

0.0075V2^2 = 2350.7 - 2313.9

0.0075V2^2 = 36.8

V2^2 = 36.8 / 0.0075

V2^2 = 4906.6666

V2 = √4906.6666

V2 = 70.0476 ft/s

converting to miles per hour

V2 = 70.0476 ft/s * 1 mil / 5280 ft * 3600s / 1hr

V = 47.7 mi/hr

8 0
3 years ago
Using the results of the Arrhenius analysis (Ea=93.1kJ/molEa=93.1kJ/mol and A=4.36×1011M⋅s−1A=4.36×1011M⋅s−1), predict the rate
uysha [10]

Answer:

k = 4.21 * 10⁻³(L/(mol.s))

Explanation:

We know that

k = Ae^{-E/RT} ------------------- euqation (1)

K= rate constant;

A = frequency factor = 4.36 10^11 M⁻¹s⁻¹;

E = activation energy = 93.1kJ/mol;

R= ideal gas constant = 8.314 J/mol.K;

T= temperature = 332 K;

Put values in equation 1.

k = 4.36*10¹¹(M⁻¹s⁻¹)e^{[(-93.1*10^3)(J/mol)]/[(8.314)(J/mol.K)(332K)}

k = 4.2154 * 10⁻³(M⁻¹s⁻¹)

here M =mol/L

k = 4.21 * 10⁻³((mol/L)⁻¹s⁻¹)

 or

k = 4.21 * 10⁻³((L/mol)s⁻¹)

or

k = 4.21 * 10⁻³(L/(mol.s))

3 0
3 years ago
Mahamad Siddiqui sent false emails and letters of recommendation on behalf of individuals without their permission to nominate h
shusha [124]

Mahamad Siddiqui sent false emails and letters of recommendation on behalf of individuals without their permission to nominate himself for the Waterman Award at the National Science Foundation. His earlier emails were offered where he had solicited letters were offered as evidence. Siddiqui claimed that content of earlier emails was hearsay. Do the earlier emails come in is given below

Explanation:

1.Mohamed Siddiqui appeals his convictions for fraud and false statements to a federal agency, and obstruction in connection with a federal investigation.   Siddiqui challenges the district court's admission into evidence of e-mail and foreign depositions.

2.On February 18, 1997, Jodi Saltzman, a special agent with the NSF interviewed Siddiqui at Siddiqui's office at the University of South Alabama.   During the interview, Siddiqui signed a statement admitting that he had nominated himself for the Waterman Award, but that he had permission from Yamada and von Gunten to submit forms on their behalf.   Siddiqui also acknowledged in the statement that Westrick had recommended Siddiqui for a different award, the PECASE Award, but that Siddiqui had changed the wording of the letter to apply to the Waterman Award.   Siddiqui was indicted on April 29, 1997.

3.Siddiqui opposed the taking of the depositions on the grounds that the witnesses' personal presence at trial was necessary, and that Indian travel restrictions for its citizens residing abroad prevented him from traveling to Japan and Switzerland.   Specifically, Siddiqui asserted that because of religious persecution in India his travel to Japan or Switzerland related to the criminal action would put his family members still living in India at risk.   The magistrate judge ruled that the government had carried its burden of showing that Yamada and von Gunten would be unavailable to appear at trial, and instructed that Siddiqui's fear of obtaining a travel visa from India because of the threat of persecution of family members should not preclude the taking of the foreign depositions.

4.Yamada's deposition was taken in Japan on March 6, 1998.   At government expense, Siddiqui's counsel attended the deposition and cross-examined the witness, but was not in telephonic contact with Siddiqui during the deposition.   Yamada testified that on February 1, 1997, she received an e-mail stating that if she received a phone call from the NSF to “please tell good words about me.”   Yamada testified that she knew the e-mail was from Siddiqui because the name on the e-mail had Siddiqui's sender address, and it ended with the name “Mo” which Siddiqui had previously told her was his nickname, and which he had used in previous e-mail.

5.Yamada later admitted to Saltzman that she had not given Siddiqui permission to sign, but had made the earlier representation because she thought Siddiqui would go to jail.

6.During cross-examination of Yamada at the deposition, Siddiqui's counsel introduced an e-mail from Yamada to Siddiqui.   This e-mail contained the same e-mail address for Siddiqui as the e-mail received by Yamada and von Gunten apparently from Siddiqui.

7.Von Gunten's video deposition was taken in Switzerland.   At government expense, Siddiqui's counsel attended the deposition and cross-examined von Gunten.   During the deposition, Siddiqui was in communication with his counsel by telephone.   Von Gunten testified at the deposition that he had not submitted a letter of recommendation in favor of Siddiqui for the Waterman Award, and that he had not given Siddiqui permission to submit such a letter in his name.

8 0
3 years ago
state & prove parallelogram law of vector addition &Also determine magnitude &direction of resultant vector.​
ludmilkaskok [199]

Answer:

Parallelogram law of vector addition states that if two vectors are considered to be the adjacent sides of a parallelogram, then the resultant of the two vectors is given by the vector that is diagonal passing through the point of contact of two vectors.

8 0
3 years ago
Other questions:
  • Policy makers in the U.S. government have long tried to write laws that encourage growth in per capita real GDP. These laws typi
    6·1 answer
  • 21. How long can food that requires time-temperature control be left in the danger zone?
    7·2 answers
  • A structural component in the form of a wide plate is to be fabricated from a steel alloy that has a plane-strain fracture tough
    10·1 answer
  • This manometer is used to measure the difference in water level between the two tanks.
    10·1 answer
  • Which should i get they are both for sale
    10·2 answers
  • Drag each item to show if it is an element or not an element.
    8·1 answer
  • Drag each label to the correct location on the table. Match to identify permanent and temporary structures.
    15·1 answer
  • The aluminum rod (E1 = 68 GPa) is reinforced with the firmly bonded steel tube (E2 = 201 GPa). The diameter of the aluminum rod
    11·1 answer
  • What speeds did john j montgomerys gliders reach
    12·1 answer
  • During delivery of a 2023 ariya equipped with propilot assist 2. 0, what should you point out to your customers about the turn s
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!