I need this in python Only python please Use list methods to
I need this in python. Only python, please.
Use list methods to add or remove elements from the list. The tool accepts only integers or floating point values. Sort short_names in reverse alphabetic order. Sample output from given program:Solution
short_names=[\'Jan\',\'Sam\',\'Ann\',\'Joe\',\'Tod\']
short_names.sort(); #it will sort in ascending order
short_names.reverse(); #it will reverse the soretd list
print(short_names)
####OUTPUT#####
sh-4.3$ python main.py
[\'Tod\', \'Sam\', \'Joe\', \'Jan\', \'Ann\']
####OUTPUT#####
