Computer Science
Lists are immutable while strings are mutable.
Python Data Handling
1 Like
Answer
False
Reason — Lists are mutable, meaning we can modify their elements after creation. For example, we can change the value of a list element or append new elements to a list. Strings are immutable, meaning we cannot change the characters in a string after it has been created.
Answered By
3 Likes
Related Questions
In print() function, if we use a concatenate operator (+) between two strings, both the strings are joined with a space in between them.
If we execute Python code using prompt ">>>" then we call it an interactive interpreter.
The keys of a dictionary must be of immutable types.
Lists and strings in Python support two-way indexing.