CBSE Class 12 Computer Science Question 40 of 105

Python Revision Tour II — Question 1

Back to all questions
1
Question

Question 1

Do both the following represent the same list.
['a', 'b', 'c']
['c', 'a', 'b']

Answer

False

Reason — Lists are ordered sequences. In the above two lists, even though the elements are same, they are at different indexes (i.e., different order). Hence, they are two different lists.