python file is writable 1

python file is writable

Check read write file access

Here is what the above code is Doing:
1. We open the file in read mode.
2. We read the file and store the contents in a variable.
3. We print the contents of the file.
4. We close the file.

Similar Posts