CBSE Class 11 Computer Science
Question 59 of 104
List Manipulation — Question 12
Back to all questions 12
Question Question 12
Compare lists with strings. How are they similar and how are they different?
Answer
The similarity between Lists and Strings in Python is that both are sequences. The differences between them are that firstly, Lists are mutable but Strings are immutable. Secondly, elements of a list can be of different types whereas a String only contains characters that are all of String type.