Ask 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 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

+5
Answers (1)
  1. 17 March, 12:03
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers