Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 62)
62.
How can you reverse the order of elements in a list without modifying the original list?
reversed_list = list.reverse()
reversed_list = list[::-1]
reversed_list = list.reverse_copy()
reversed_list = list.reverse(True)
Answer: Option
Explanation:
Using slicing [::-1] creates a new list with the reversed order of elements.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.