with open(filename, 'w') as my_file:
        my_file.write(string_to_write)
        
      
      Python language logo

      Write file

      Python public recipes

      Shortcut: file.write

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.