I have a dictionary "metadata" that contains key-value pairs of strings, lists, dicts, and integers. How can I loop through this dictionary and convert all values that are not of type string or integer to string?
Is there any way to simultaneously remove keys for which the value is empty? How could I do this without adding an additional loop?