KnowledgeBoat Logo

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