Basic Python Programming: for loops and reading files

Python string we need to put a backslash before each of them. For example: filename = 'C:\\AI\\python\\sample.txt' ... The file that you read needs to be a text document. You can create a text document using Notepad, WordPad (save the file as a ‘Text Document’), or Microsoft Word (save the file as ‘text only with line ... ................
................