Basic Python Programming: for loops and reading files

Just like reading a file, we will open and write the file in multiple steps. Create a variable to hold the name of the file that we want to open. Often, this will be a new file that doesn’t yet exist. Call a function to open the file. This time, we will specify that we are opening the file to write into it! Write the data into the file. ................
................