What are the different file-processing modes with Python?
"Following are the file-processing modes that will help you-
You can open a text file with the option ‘t’. So to open a text file to read it, you can use the mode ‘rt’. Similarly, for binary files, you can use ‘b’."