Basic Python Programming: for loops and reading files

mode of the file. By ‘mode’ we mean that we can open a file for reading or we can open it for writing. In this case we want to read information from a file so the mode is ‘r’ (for ‘ read’). The name of the file is a string and it represents the name of the file including possibly the path to that file. ................
................