Ask Question
1 December, 10:35

How are Python dictionaries different from Python lists? Python lists can store strings and dictionaries can only store words Python dictionaries are a collection and lists are not a collection Python lists are indexed using integers and dictionaries can use strings as indexes

+3
Answers (1)
  1. 1 December, 10:43
    0
    Python lists are indexed using integers and dictionaries can use strings as indexes

    Explanation:

    Python lists can store strings and dictionaries can only store words False

    Words are actually strings. This is false because Python dictionaries store strings.

    Python dictionaries are a collection and lists are not a collection False

    This is false because in Python lists are an ordered collection of items

    Python lists are indexed using integers and dictionaries can use strings as indexes True

    Python lists are an ordered collection of items. Indexing means referring to the position of the element and this is possible using integer for Python lists and strings for Python dictionaries.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “How are Python dictionaries different from Python lists? Python lists can store strings and dictionaries can only store words Python ...” 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