Ask Question
10 June, 09:39

What is the difference between a list and a string? A. lists are sequences but strings are not and therefore you cannot access a string element using []B. lists are immutable, but strings can be changedC. lists can hold values of any type, whereas strings are only sequences of charactersD. elements in a list can be accessed using an integer as the index value, but strings can use any numeric data type for the index

+4
Answers (1)
  1. 10 June, 11:47
    0
    C.

    Explanation:

    Lists can hold values of any type i. e. integers, characters, strings, etc, whereas strings are only sequences of characters.

    The values in the list are called elements.

    A list that contains no elements is called an empty list.

    The list function is used to break a string into individual letters. The split method can be used to break a string into words.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the difference between a list and a string? A. lists are sequences but strings are not and therefore you cannot access a string ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers