**w ** opens for reading and writing, truncating the file but also allowing you to read back whats been written to the file. a opens for appending and reading, allowing you both to append to the file and also read its contents.
One may also ask, what are python files? A file is some information or data which stays in the computer storage devices. Python gives you easy ways to manipulate these files. Generally we divide files in two categories, text file and binary file. Text files are simple text where as the binary files contain binary data which is only readable by computer.
Then, what does RB mean in Python?
read binary
What does A mean in Python?
Python opens files almost in the same way as in π r Open for reading and writing. The stream is positioned at the beginning of the file. **a ** Open for reading and appending (writing at end of file). The file is created if it does not exist.