Computer Science

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

Python List Manipulation

3 Likes

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.

Answered By

2 Likes


Related Questions