Advertisements
Advertisements
प्रश्न
Consider the statements given below and then choose the correct output from the given options:
L=[‘TIC’, ‘TAC’]
print(L[::-1])पर्याय
[‘CIT’, ‘CAT’][‘TIC’, ‘TAC’][‘CAT’, ‘CIT’]
[‘TAC’, ‘TIC’]
MCQ
Advertisements
उत्तर
[‘TAC’, ‘TIC’]
Explanation:
The slice L[::-1] reverses the order of elements in the list, so the list is printed in reverse.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
