Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 38)
38.
What is the result of the expression tuple(('a', 'b', 'c'))[::-1]?
('a', 'b', 'c')
('c', 'b', 'a')
['c', 'b', 'a']
('c', 'b', 'a')
Answer: Option
Explanation:
The [::-1] slice reverses the order of elements in the tuple.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.