code: def write_dict_to_file(file_path, obj):
      
      lines = []
      for key, value in obj.items():
          lines.append(key + ':' + repr(value) + '\n')
  
      with open(file_path, 'w+') as file:
          file.writelines(lines)
  
      return None
docs: Write a dictionary of string keys to a file