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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
