Question: what is the difference between text file and binary file in python?
Answer: The two file types may look the same on the surface, but their internal structures are different. While both binary and text files contain data stored as a series of (bits (binary values of 1s and 0s), the bits in text files represent characters, while the bits in binary files represent custom data.