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
3 Likes
Related Questions
Fill in the blanks:
The _________ function returns all values from Key : value pair of a dictionary.
Fill in the blanks:
The _________ function returns all the Key : value pairs as (key, value) sequences.
A list may contain any type of objects except another list.
There is no conceptual limit to the size of a list.