Ask Question
26 March, 11:22

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

+3
Answers (1)
  1. 26 March, 12:04
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers