Question: ou have a dictionary mixedDictionary with keys that can be both strings or integers. Write some code that splits the dictionary into stringDictionary and integerDictionary,
ou have a dictionary mixedDictionary with keys that can be both strings or integers. Write some code that splits the dictionary into stringDictionary and integerDictionary, where the first only has string keys and the second only has integer keys. Note: You can use the Python type function to test whether an object is a string or an integer. See Section 4.5 Introduction to Objects and Methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
