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
allsm [11]
2 years ago
9

8.4.11: Take a Thing Out, Sort It and Reverse It

Advanced Placement (AP)
1 answer:
Tom [10]2 years ago
6 0

The remove_sort_reverse function takes a list, removes all "s" in the list elements, sorts and then reverses the remaining elements

<h3>The actual program</h3>

The program in Python, where comments are used to explain each line is as follows:

#This defines the function

def remove_sort_reverse(myList):

   #This iterates through the list

   for i in range(len(myList)):

       #This removes all the s in the list elements

       myList[i] = myList[i].replace("s","")

   #This sorts and reverses the list elements

   myList.sort(reverse=True)

   #This returns the updated list

   return(myList)

Read more about Python functions at:

https://brainly.in/question/10211834

You might be interested in
What does the author mean on page 4 Passage 2 when he says that Sir Kay “player his hand like a major—and took every trick” ?
pickupchik [31]

Answer:

Sir Kay was not easily fooled

Explanation:

This is a figurative expression that means that sir kay was not one who could be fooled so easily. From the sentence before this expression, it is stated that sir kay was equal to the occasion based on the fact that lots of eyes rested on him. The expression suggests that he knows every trick and so he was not the kind of person who could be bought over easily.

6 0
3 years ago
Particle x moves along the positive x-axis so that its position at time t ~ 0 is given by x(t) = 5t 3 - 9t 2 + 7. at what time t
Arada [10]

Answer: 1.2 seconds

Explanation:

$$At the farthest point the velocity of particle will be zero. \ Differentiating the given equation of position and equating it with zero:$$\begin{aligned}x(t) &=5 t^{3}-9 t^{2}+7 \\x^{\prime}(t) &=15 t^{2}-18 t \\0 &=15 t^{2}-18 t \\t(15 t-18) &=0 \\t &=0 \\t &=\frac{18}{15}=1.2 \mathrm{~s}\end{aligned}$$

$$Thus, at $t=1.2 \mathrm{~s}$ particle will be at the farthest point. \\\\\underline{Justification:}\\The particle moves towards the left from $t \in[0,1.2)$. After that particle keeps moving in  the positive x-direction.

5 0
2 years ago
What is an astronomical unit
ki77a [65]
An astronomical unit is a unit of measurement that scientists use to determine how far something is in space
5 0
3 years ago
Read 2 more answers
ANSWER QUICK
ValentinkaMS [17]

Answer:oximatelyo  important issue for the Netherlands, as due to its oelevation, approximately two thirds of its ar

5 0
3 years ago
Read 2 more answers
Participating in physical activity can help to reduce stress in all of the following ways EXCEPT:
Nitella [24]
I think the answer would be seeking friendship or support. But thats the only thing i could think of sorry if i am wrong.
4 0
3 years ago
Other questions:
  • For your speech to be effective, you must carefully consider what your specific___ is
    10·1 answer
  • What is encoding failure
    12·2 answers
  • Child care providers are considered "mandated reporters in most states." This means they're required by law to
    5·1 answer
  • QUESTION 14
    14·1 answer
  • Which of these statements is not true?
    7·1 answer
  • From the book Styx malone
    6·2 answers
  • Describe the characteristics, symptoms, and behaviors that would be exhibited from anxiety disorders, generalized anxiety disord
    13·2 answers
  • HeLP PLS BRANLIEST???
    11·2 answers
  • I really need help!
    15·1 answer
  • With a half life of 28.8 years, how long will it take 1g of strontium-90 to decay to 250 mg
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!