Computer Science, asked by 913160580, 4 months ago

Use the following initializer list to create an array (this is also in your programming environment): twainQuotes = ["I have never let my schooling interfere with my education.", "Get your facts first, and then you can distort them as much as you please.", "If you tell the truth, you don't have to remember anything.", "The secret of getting ahead is getting started.", "Age is an issue of mind over matter. If you don't mind, it doesn't matter. "] Print this array, then use functions to sort the quotes. Then, print the quotes again. Next, insert the quote "Courage is resistance to fear, mastery of fear, not absence of fear." at the correct spot alphabetically, and print the quotes again.

Answers

Answered by stormyiris319
20

Answer:

twainQuotes = ["I have never let my schooling interfere with my education.",

"Get your facts first, and then you can distort them as much as you please.",

"If you tell the truth, you don't have to remember anything.",

"The secret of getting ahead is getting started.",

"Age is an issue of mind over matter. If you don't mind, it doesn't matter. "]

print(twainQuotes)

twainQuotes.sort()

print(twainQuotes)

twainQuotes.insert(1, "Courage is resistance to fear, mastery of fear, not absence of fear.")

print(twainQuotes)

Explanation:

I got a 100 on this, hope it helps anyone who needs it

Similar questions