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
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
Step by Step Solution
3.40 Rating (172 Votes )
There are 3 Steps involved in it
Question 1 B Dictionaries are never sorted Question 2 Dic... View full answer
Get step-by-step solutions from verified subject matter experts
