Question

NOTE: Ascending-A to link below and Descending-2to A. For hint, see the https://www.programiz.com/python-programming/methods/use python to get the output

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here is the program below:

my_vowels = ["a", "e", "i", "o", "u"]

## my_vowels is the name of the list and a,e,i,o and u are stored in the list ##

my_vowels.sort(reverse=True)

## here we are sorting the content of the list and by using reverse=True, it sort the content in a descending order ##

print ("sorted list:", my_vowels)

## printing the new sorted variable from the list ##

cript.pyIPython Shell In [11: my vowels 0 > In [21: my vowels.sort Sorted list (in Descending): [u o, i, a sorted :list o

Add a comment
Know the answer?
Add Answer to:
use python to get the output NOTE: Ascending-A to link below and Descending-2to A. For hint,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT