×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: Chelsea Trotter
Added: Apr 4, 2022 7:19 PM
Views: 408
Tags: no tags
  1. def write_to_file(filename, content):
  2.     f = open(filename, "w")
  3.     f.write(content)
  4.     f.close()
  5.