python In which situation is a Python dictionary sorted? A. Dictionaries are always sorted. B. Dictionaries are
Fantastic news! We've Found the answer you've been seeking!
Question:
python
In which situation is a Python dictionary sorted?
- A. Dictionaries are always sorted.
- B. Dictionaries are never sorted.
- C. Only after you've called the sort() function.
- D. They are sorted by value.
- E. They are sorted by key.
Dictionaries …
- A. must use integers as an index (i.e. mydictionary[5] ="hello")
- B. must use strings as an index (i.e. mydictionary["word"]= "hello")
- C. must use floating point number as an index (i.e.mydictionary[4.5] = "hello")
- D. can use any data type as an index
It is possible to store a sequence structure (such as a list orDictionary) inside of another Dictionary.
True
false
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date: