The following list is given: artists = ['Sting', 'Phil Collins', 'The Police', 'Queen', 'AC/DC'] What will be the result of the following operation? artists[::-1]

Questions & AnswersCategory: PythonThe following list is given: artists = ['Sting', 'Phil Collins', 'The Police', 'Queen', 'AC/DC'] What will be the result of the following operation? artists[::-1]
Lokesh Kumar Staff asked 2 years ago

The following list is given:

artists = ['Sting', 'Phil Collins', 'The Police', 'Queen', 'AC/DC']

What will be the result of the following operation?

artists[::-1]

a. [‘AC/DC’, ‘Queen’, ‘The Police’, ‘Phil Collins’, ‘Sting’]
b. ‘AC/DC’
c. [‘Sting’, ‘Phil Collins’, ‘The Police’, ‘Queen’
d. [‘Sting’, ‘Phil Collins’, ‘The Police’, ‘Queen’, ‘AC/DC’]
e. ‘Phil Collins’, ‘The Police’, ‘Queen’, ‘AC/DC’]