79466723

Date: 2025-02-25 13:31:40
Score: 1
Natty:
Report link

simply remove nonstring keys and values

def remove_non_string_keys_and_values(d):
  return {k: v for k, v in d.items() if isinstance(k, str) and isinstance(v, str)}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SantK