The function below takes one parameter: a list (string_list) that contains only strings. Complete the function to return the longest string from the list. If the list is empty, return an empty string (i. E "").

Answers

Answer 1

Answer:

def find_longest_string(string_list):

   if string_list==[]:

       return ""

   else:

       return max(string_list,key=len)

Explanation:

Answer 2

Computer programming languages utilize string functions to manipulate strings and to obtain data about strings. A string is a collection of characters, including letters, numbers, symbols, and spaces.

What is meant by string function?

Computer programming languages utilize string functions to manipulate strings and to obtain data about strings (some do both). Although there might be additional low-level ways within each language to handle strings directly, the majority of programming languages that support the string datatype will contain some string functions.

A string is a collection of characters, including letters, numbers, symbols, and spaces. Typically, single or double quotation marks are used to denote strings, as in the example "Isaac Computer Science". Strings are made up of characters.

The programming is as follows:

def select_short_strings(string_list):

 new_list = []

 

 for s in string_list:

   if len(s) < 20:

     new_list.append(s)

 return new_list

 

lst = ["apple", "I am learning Python and it is fun!", "I love programming, it is easy", "orange"]

print(select_short_strings(lst))

To learn more about string function refer to:

https://brainly.com/question/25324400

#SPJ2


Related Questions

The king maintained control through a rigid class structure. Which statements accurately describe an aspect of the class structure? choose all answers that are correct. Question 6 options: peninsulares were native-born spaniards who held all the important positions in the colonies. Milanos were on the lowest rung on the social ladder and were little more than slaves. Creoles were of spanish descent but born in america and therefore seldom held government positions. Mestizos were of mixed race, spanish and indian, and were generally poor, if free. The native peoples were very poor and worked in the fields and in the mines.

Answers

If you got all select apply then these are the answers!

Answer:

A) Peninsulares were native-born Spaniards who held all the important positions in the colonies.

C) Creoles were of Spanish descent but born in America and therefore seldom held government positions.

D) Mestizos were of mixed race, Spanish and Indian, and were generally poor, if free.

E) The native peoples were very poor and worked in the fields and in the mines.

Which chemical formula represents a polyatomic ion brainly.

Answers

Answer:

CIO-

Explanation:

According to the equation for the reaction, if the amount of the reactants is halved, how does this affect the amount of h2o(l) produced in the reaction?.

Answers

Answer:

Explanation:

According to the reaction equation shown,  if the amount of the reactants is halved, the amount of H2O(l) produced in the reaction will be halved.

The molecular reaction equation was given as follows; HCl(aq) + NaOH(aq)→ NaCl(aq) + H2O(l). Ionically, we can write; H^+(aq) + Cl^-(aq) + Na^+(aq) + OH^-(aq) ----> Na^+(aq) + + Cl^-(aq) + H2O(l). The net ionic equation now becomes; H^+(aq) + OH^-(aq) ----> H2O(l).

This implies that the concentration of H2O(l) depends on the concentrations of H^+(aq) and OH^-(aq) from HCl(aq) and NaOH(aq) respectively and the mole ratio of reactants and products is 1:1:1:1.

Hence, of the amount of the reactants is halved,  the amount of H2O(l) produced in the reaction will be halved.

 

Farm foreclosures happen when farmers cannot pay their mortgages (loans) to a bank. The bank seizes the farm, and the farmer is forced out of business and must vacate the property. In general, foreclosures were during the 1920s.

Answers

Answer:a

Explanation:

The economy's decline during the Great Depression caused farmers to face several challenges, and farm foreclosures increased.

What are Farm foreclosures?

Farmers were dealing with a decline in agricultural commodity prices as a result of the economy. To earn more money to feed their families, farmers had to produce more farm products.

Due to the decline in prices throughout the 1930s, many farmers lost their farms and went bankrupt.

Farmers' homes and lands were taken by banks through a legal procedure called foreclosures when they were unable to repay their loans.

Therefore, droughts and a dust bowl caused a drop in agricultural output farmers cannot pay their mortgages (loans).

Learn more about the farm, here:

https://brainly.com/question/6975419

#SPJ5

I drew Bambi a little too off.. but hey it looks good, sorta

Answers

That is, It looks fresh :D

Amy korean eats a lot of food items like burgers and fries risk factors.

Answers

Eating lots of unhealthy food-items? And possible risk factors?

possible risk factors of eating unhealthy foods:

Being overweight or obeseTooth decayhigh blood pressurehigh cholesterolheart disease and stroke type-2 diabetes osteoporosissome cancersdepressioneating disorders

what are some unhealthy food items?

here are some unhealthy foods below:

sugary drinks, like coke or fanta most pizzaswhite breadmost fruit juicessweetened breakfast cereals like kellogg's Honey Smacks, Malt-O-Meal Golden puffs, Mom's Best cereals Honey-ful wheat.Fried, grilled, or boiled food,pastries, cookies, and cakes french fries and potato chips

How to know if the food is unhealthy?

Minimal nutritional value Highly processedHigh in saturated fatsAdded artificial flavors and chemical compounds

so if you want to live a healthy life, then start eating healthy foods and exercise daily.

#lets study

Chris wanted to transform the graph of the parent function mc018-1. Jpg by horizontally compressing it so that it has a period of mc018-2. Jpg units, horizontally translating it mc018-3. Jpg units to the right, and vertically translating it 1 unit up. To do so, he graphed the function mc018-4. Jpg, as shown. What did he do wrong?.

Answers

Answer: The answer is C: He graphed the function y=cot(2x-pi/4)+1 correctly but it was not the right function to graph. He should have graphed y=cot(2x-pi/2)+1.

Explanation:

There are different ways to graph the transformation of a parent function.  The fact remains that Chris did rightly graphed the function y = cot(2x - pi/4) + 1.

Chris did not graph the right function. The best he could have done is graphed y = cot(2x - pi/2) + 1.

Why should Chris graphed y = cot(2x - pi/2) + 1.

The graphed y = cot(2x - pi/2) + 1 is right because; pi/2, implies that  b must be equal to 2 (this only apply when one use the period equation for tan and cot, pi/b, For pi/b to be equivalent to pi/2, b must be 2).

The right equation is graphed  y = cot(2x-pi/2)+1 because through the division of the two numbers out of the equation that is inside the parenthesis.

Then from the above, you get the graph of y = cot2(x-pi/4)+1, which is the correct equation Christ should have graphed.

Learn more about transformation from

https://brainly.com/question/6945533

Emotional responses are innate behaviors that are not influenced by the environment. Please select the best answer from the choices provided T F.

Answers

That is false because the environment has a lot to do with it.

Answer:

Hello, your answer should be B, false

Explanation:

Good luck friends

A family eats out at a restaurant and the total for their meals is $73. 89. They also pay sales tax of 5. 8% and leave a tip for their server. If the family leaves a total of $93, which of the following might be a description of the service they received? a. They left a 10% tip, so the service was probably below average. B. They left a 15% tip, so the service was probably average. C. They left a 20% tip, so the service was probably above average. D. They left a 25% tip, so the service was probably outstanding.

Answers

The answer to your question is D hope I helped :)

Kim has worked in the tech industry for some time and would like to start consulting. In opening her new business, she will need equipment. She needs to purchase 3 laptops, 2 desktop computers, and a fax machine. Each laptop costs $546. 78, each desktop computer costs $1,255. 99, and the cost of the fax machine is $125. 99. She currently has $3,500 in her savings account. Determine if Kim has enough in her savings account to cover the expenses of her new company, and if she doesn't have enough, determine the amount needed to cover the cost. A. Kim can cover the cost with $315. 25 left over. B. Kim can cover the cost with $477. 68 left over. C. After expenses, Kim will need an additional $1,478. 52 to start her company. D. After expenses, Kim will need an additional $778. 31 to start her company.

Answers

Answer:

D

Explanation:

took the test

What is the purpose of this passage? to explain who Marina and Marc are to link the authors’ families to sugar to explore the history of Guyana to show what sugar is used for.

Answers

Answer: B, to link the author’s families to sugar

Explanation: I took the test

Answer:

B. to link the authors’ families to sugar

Explanation:

Sam is thinking of retiring from his job after many years of faithful service. During the last 35 years at his job, his annual salary averages to $37,991. Every month, his bills total $1,755. How much money would Sam need each month to supplement his monthly Social Security benefit (assuming his annual benefit is 42% of his salary average) and still be able to pay his bills? a. At least $81. 23 b. At least $425. 32 c. At least $1,410. 92 d. At least $3,019. 67.

Answers

Answer: b. at least 425.32

Explanation:

got it right on edg

Which of the following is a viewpoint espoused by locke.

Answers

The idea that government was instated to preserve life liberty and property was the viewpoint espoused by Locke.

If you saw a shooting star and were lucky enough to see where it landed, which object could you possibly pick up from the landing site?.

Answers

Answer:

You would most likely to pick up a small rock because since the shooting star is entering our atmosphere at a high speed, it would burn up and when it burns up it will shrink.

Explanation:

If f Superscript negative 1 Baseline (x) = negative one-fifth x, what is f Superscript negative 1 Baseline (x) = one-fifth x? mc002-3. Jpg mc002-4. Jpg mc002-5. Jpg mc002-6. Jpg.

Answers

Answer:

Option C.

f^-1(x)=1/5x

Explanation:

[tex]f^{-1}(x) = -\frac 15x[/tex] is reflected across the x-axis to form [tex]f^{-1}(x) = \frac 15x[/tex].

The function is given as:

[tex]f^{-1}(x) = -\frac 15x[/tex]

[tex]f^{-1}(x) = \frac 15x[/tex]

By comparison, we can see that:

Both functions are inverse functionsBoth inverse functions hold different values

Rewrite the second function as:

[tex]g^{-1}(x) = \frac 15x[/tex]

So, the relationship between both inverse functions is:

[tex]f^{-1}(x) = -g^{-1}(x)[/tex]

The above relationship means that, f'(x) is reflected across the x-axis to form g'(x)

Hence, [tex]f^{-1}(x) = -\frac 15x[/tex] is reflected across the x-axis to form [tex]f^{-1}(x) = \frac 15x[/tex].

Read more about inverse functions at:

https://brainly.com/question/14595259

True or False? Impersonal conversation is the type you have with your best friend. Please select the best answer from the choices provided T F.

Answers

Impersonal conversation is the type you have with your best friend: False.

A conversation can be defined as a situation in which a person interacts with another through the exchange of oral messages (speech or spoken words).

Generally, there are two (2) main types of conversation and these include:

Personal conversation: this is a type of conversation you hold with someone that you share a personal relationship with such as a family member, friend, etc. Impersonal conversation: this is a superficial conversation you hold with someone that you don't know personally such as a stranger.

In conclusion, a personal conversation rather than an impersonal conversation is the type you have with your best friend.

Read more: https://brainly.com/question/25281954

Answer:

false

Explanation:

which loan type provides interest subsidy, meaning department of education (ed) pays your interest while you're in school, during your grace period, and during deferment?

Answers

Answer:direct subsidized

Explanation:

Loans which are offered to students whose condition required or warrants financial help or assistance such as those those whp are unable to pay their tuition is called direct subsidized loans.

It can be inferred that the department finds students who are unable to settle their tuition up until grace period or deferment period as requiring financial help or assistance.

Hence, loans rendered to thses category of students is called direct subsidized loans.

Learn more : https://brainly.com/question/25415243

Brody had his computer repaired at store a. His bill was: initial repair cost = $1,200 sales tax of 6 percent = $72. 00 gratuity of 15 percent explain how you would calculate the gratuity for the services provided.

Answers

Answer:

1290 her repair cost

Explanation:

my explantipn poba

Answer:

1290

Explanation:

answer by Diya poudel

The soccer team is planning to sell health bars for a fundraiser. The prices of purchasing health bars from two different companies are represented by the system of equations shown, where x is the number of bars purchased and y is the total cost in dollars. Company a: y=0. 75x company b: y=10+0. 50x how many bars would the team need to purchase from each company in order for the total cost to be equal? 6 8 30 40.

Answers

Answer:

d

Explanation:

took test on edge

Answer: A

Explanation:

Secondhand smoke can be filtered by the lungs and is therefore less harmful than firsthand smoke. Please select the best answer from the choices provided. T F.

Answers

Answer:

False

Explanation:

 It is just as harmful, the lungs cannot filter it.

Answer: False

Explanation:  It is just as harmful, the lungs cannot filter it.

Which type of medication is delivered through the mouth.

Answers

Answer:

oral

Explanation:

when you take medicine, most likely it will be through your mouth, and your mouth is called an oral medication.

By making eye contact with her teacher and writing down questions in her notes about the content, Alma is participating in a. Active listening c. Listening activities b. Active noting d. None of these Please select the best answer from the choices provided A B C D.

Answers

“Active listening is a technique of careful listening and observation of non-verbal cues, with feedback in the form of accurate paraphrasing, that is used in counseling training, and solving disputes or conflicts,”
It’s A, I’ve included an example.

Answer:

A: Active listening

Explanation:

100% on quiz

By the time you retire exactly at age 70 you will have saved $700,000 into your diversified portfolio of mutual funds, bonds, and t-bills. You expect to move onto the spirit world at exactly age 80. You do not want to have any money left over when you die. How much can you withdraw at the beginning of each month for 10 years of retirement if your annual rate of return is 6. 5%?.

Answers

You can withdraw $7,882 monthly for ten years with an annual return of 6.5% on the savings.

Data and Calculations:

Your Planned Retirement Age = 70

Your Life Expectancy = 80

Your Retirement Savings at Retirement = $700,000

Annual Contribution from Retirement = $0

Monthly Contribution from Retirement = $0

Average Investment Return  = 6.5%

Inflation Rate (Annual) expected = 0%

Result:

Balance at the retirement age of 70: $700,000

The amount you can withdraw monthly from 70 to 80: = $7,882

Thus, you can withdraw $7,882 every month for ten years.

Learn more: https://brainly.com/question/13401649

Greta thunberg is worried about the future answer key.

Answers

Answer:

Explanation:

Greta's worries about the future of their planet. What Does Greta Speak About? Global warming can also be called climate change. It is the ...

The first free elections in Argentina were held in

Answers

Answer: The first free elections under the Sáenz Peña regime were held in 1916. Women did not have the right to vote in Argentina until 1947, when Law 13.010 ("on political rights for women") was sanctioned during the government of Juan Domingo Perón. Women first voted in a national election in 1951.

Explanation:

The first free elections under the Sáenz Peña regime were held in 1916. Women did not have the right to vote in Argentina until 1947.

Are there free elections in Argentina?

Elections in Argentina have typically been seen as free, fair, and transparent since the country's return to democracy in 1983. As of 2019, the average voter turnout stood at 70.24%.

The first free elections under the Sáenz Peña regime were held in 1916. Women did not have the right to vote in Argentina until 1947, when Law 13.010 ("on political rights for women") was sanctioned during the government of Juan Domingo Perón. Women first voted in a national election in 1951.

The Argentine Chamber of Deputies held its 1912 legislative elections on April 7, 1912. The campaign saw a participation rate of 73% and was the first free, democratic election in the history of the country.

Therefore, The first free elections under the Sáenz Peña regime were held in 1916. Women did not have the right to vote in Argentina until 1947.

Learn more about elections on:

https://brainly.com/question/11185151

#SPJ7

Which details from the excerpt best support the conclusion that children are the author's intended audience? Select two options. The repetition of words and patterns the terms "kun" and "payah kun" the provided translation support the use of animals to tell a magical story the description of geological features.

Answers

Answer:

the repetition in words, and the use of animals to tell a magical story

(1 and 4)

Explanation:

i just took the test

The excerpts best support the conclusion that children are the author's intended audience :

Repeating words and patterns  Explanation of how geographic features were created  

The Excerpt is from "The Crab That Kipling" by Reudyard is a literary structure of fairy tales aimed at telling children, repeating words and patterns  that give children easy-to-understand rhythms, and geographical locations.

Learn more:

https://brainly.com/question/24466505?referrer=searchResults

The table shows the scores that Ms. Cohen’s students earned on the Chapter 6 and Chapter 7 tests. Student Scores A 3-column table with 2 rows. Column 1 has entries Proficient, Needs improvement. Column 2 is labeled Proficient with entries 13, 3. Column 3 is labeled Needs Improvement with entries 4, 5. The columns are labeled Chapter 7 and the rows are labeled Chapter 6. What is represented by the expression StartFraction 3 Over 16 EndFraction = 18.75 percent ? the percentage of students who earned a score of "proficient" on the Chapter 6 test and a score of "needs improvement" on the Chapter 7 test the percentage of students who earned a score of "proficient" on the Chapter 6 test to the total number of students the percentage of students who earned a score of "needs improvement" on the Chapter 6 test and a score of "proficient" on the Chapter 7 test the percentage of students who earned a score of "needs improvement" on the Chapter 6 test to the total number of students

Answers

Answer:

C

Explanation:

Which quotation from this passage is an example of foreshadowing? "Some hams hanging in the kitchen were taken out for burial, and the barrel of beer in the scullery was stove in." "The farmhouse should be preserved as a museum. All were agreed that no animal must ever live there." "The animals had their breakfast, and then Snowball and Napoleon called them together again." "‘Comrades,’ said Snowball, ‘it is half-past six. . . . Today we begin the hay harvest.’"

Answers

Answer:

B) “The farmhouse should be preserved as a museum. All were agreed that no animal must ever live there.”

Explanation:

I did the quiz

When we look at the house through the eyes of the animals, we find it amusing that the hams were buried, but the animals see it as completely appropriate. At this point, every animal on the farm is participating in decision-making, and they all agree to retain the farmhouse as a museum. Thus, option B is correct.

What quotation from is an example of foreshadowing?

The farmhouse should be kept as a museum, it was decided unanimously there and then. Everyone concurred that no animal should ever reside there. Following breakfast, Snowball and Napoleon called the animals back together.

They Jones and his men had never witnessed animal behaviour like this before, and the sudden revolt of the creatures, which they were accustomed to whipping and torturing as they pleased, scared them nearly to the point of insanity.

Therefore, “The farmhouse should be preserved as a museum. All were agreed that no animal must ever live there.”

Learn more about foreshadowing here:

https://brainly.com/question/29779767

#SPJ5

Airborne chemical substances travel up the nose to the olfactory __________, which is the receptor for smell. A. Cilia B. Cortex C. Bulb D. Base.

Answers

Answer:

Answer: Airborne chemical substances travel up the nose to the olfactory OLFACTORY CORTEX, which is the receptor for smell.

Explanation:

The olfactory cortex is the portion of the cerebral cortex that concocts olfactory data. It is required in the function of smell. It is found in the temporary lobe of the brain, which is associated with establishing sensory input. The olfactory cortex is further a part of the limbic system.

Explanation:

Airborne chemical substances travel up the nose to the olfactory cortex. Thus, the correct option for this question is B.

What is the function of the olfactory cortex?

The fundamental function of the olfactory cortex is that it is significantly involved in the conscious perception of a smell. This cortex is the component of the limbic system.

This limbic system is particularly involved in the processing of emotions, memory formation, survival instincts, etc. Apart from these, it is the only system that connects your senses to the brain. It is present in the temporary lobe of the brain. It stimulates the brain to sense the smell of particular substance through the nose.

Therefore, airborne chemical substances travel up the nose to the olfactory cortex. Thus, the correct option for this question is B.

To learn more about Olfactory cotex, refer to the link:

https://brainly.com/question/12969512

#SPJ5

The excerpt is an example of what type of narration? dramatic monologue third person, all-knowing dramatic dialogue second person, limited.

Answers

Answer:

The excerpt is an example of what type of narration?

dramatic dialogue <<<CORRECTthird-person, all knowing second person, limited stream of consciousness

Explanation:

Edge Unit Test November 29 2021

The excerpt is an example of type of narration as dramatic dialogue.

What is excerpt?

Excerpt means a short summary from a film, broadcast, music or writing.

This relates to the background of entertainment or theatres.

Thus, excerpt is an example of type of narration as dramatic dialogue.

Learn more about excerpt.

https://brainly.com/question/16553806

#SPJ2

Other Questions
Where would you most likely find specialized tissue?A. In a sperm cell B. In an egg cell C. In a tadpole D. In a bacteriumPls help me Fast! he principal placed an order for pencils. 96 pencils come in a box.A. If 4 teachers share 3 boxes equally, how many pencils does each teacher receive? Show and explain your work. How does God enter into our lives today? 1)Cece spent 2 2/5 hours doing his math modules 1 1/5 hours doing his science. how munch more time did cece spend on doing his math module than on his science module?A. 1 1/5B. 3 3/5C.3 3/10D. 1 1/0 HELP ITS DUE TODAY I ONLY HAVE 10 min ! Find the volume of the cylinder. Use 3.14 for 1. Round your answer to the nearest cubic millimeter.5 mm4 mm how high is a stack of 20 bricks? Describe two different types of immune disorders. how did Portugal have such a large influence on Europe's commerce? Only right answers no spammers ill give brainliest if able to. WHICH PART OF THE PORTABLE DRILL THAT WILL HOLD THE DRILL BIT? Which statement best describes a polygenic trait?A polygenic trait is only controlled by one gene and influenced by the environment.A polygenic trait is controlled by multiple genes and influenced by the environmentA polygenic trait is only controlled by multiple environmental factorsA polygenic trait is only controlled by one environmental factor.WILL POST ANSWER IN COMMENTS Which best describes the political participation of African Americans during Congressional Reconstruction?O African Americans were excluded from participating in government at any level.O African Americans participated widely in local government in the South.O African Americans became the most powerful voice in state governments.O African Americans were elected to positions in state and national government. Suppose that y varies directly with xand y = 5 when x = 6. What is ydywhen x = 5? What is the sum of -58 and -43? what was mexicos position on slavery immediately prior to the texas revolution? What is the simplified value of the expression below?3 (8 minus 4) + 2 times 5.523314777 The flowchart below shows the major steps in a system that builds mp3 players.Which of the steps in the system are examples of processes? A. I, II, III, and IV only B. I, III, and V only C. II and IV only D. I, II, III, IV and V among countries in the western hemisphere, what is el salvador the most at? A number minus twice another number is 4. Three times the first number plus two times the second number is 12. Write a system of equations. what hormonal signal is important in the metamorphosis of amphibians?