Computer Science
Related Questions
What will be the output of following Python code?
d1 = {"a":10,"b":2,"c":3} str1="" for i in d1: str1 = str1 + str(d1[i]) + " " str2 = str1[:-1] print(str2[::-1])- 3, 2
- 3, 2, 10
- 3, 2, 01
- Error
Running the code sorted(mydictionary, reverse = True) on a dictionary named mydictionary will return results sorted in what order?
- Ascending order (A-Z), by key
- Ascending order (A-Z), by value
- Descending order (Z-A), by key
- Descending order (Z-A), by value
Fill in the blanks:
The order of a dictionary's elements is _________.
Fill in the blanks:
To delete an element using a key, _________ is used.