conver all dict keys to str python code example Example: conver all dict keys to str python new_d = {str(key): str(value) for key, value in keys_values}