ShareCopy to ClipboardRawPreviewwith open(filename, 'w') as my_file: my_file.write(string_to_write) Write file023juli1Python public recipesShortcut: file.write0 CommentsAdd CommentLog in to add a comment