Python includes three types of built-in data structures: lists, immutable lists
ID: 3830237 • Letter: P
Question
Python includes three types of built-in data structures: lists, immutable lists called tuples, and hash tables called dictionaries. B) Python lists may be used as keys in dictionaries. C) Python tuples are derived from (inherit) from Python lists. D) Python tuples may be used as keys in dictionaries. Select aN of the following statements that are true. A) Backus-Naur Form (BNF) is used to describe the syntax of programming languages with context-free grammars. B) A metalanguage is a language used to describe other languages. BNF is a metalanguage. Formal descriptions of language syntax often do not include descriptions of the lowest-level syntactic units. Such small units are called lexemes, and the description of lexemes can be given separate from the syntactic description of the language. C) In class, scanners were used to identify lexemes. D) A token of a language is a category of lexemes. For example, identifier is a token that can have lexemes like sum or total.Explanation / Answer
1) the true statements are:-
(a) Python iclude three types of built-in data structures:- list, tuples and dicitonaries.
(c) python tuples are derived from python lists
(d) python tupes may be used as keys in dicitonaries.
2) the answer is (a), (b) AND (d)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.