I am a beginner and I am having trouble in grasping binary files. When I write to a file in binary mode (in python), I just write normal text. There is nothing binary about it. I know every file on my computer is a binary file but I am having trouble distinguishing between files written in binary mode by me and files like audio, video etc files that show up as gibberish if I open them in a text editor.
How are files that show up as gibberish created? Can you please give an example of a small file that is created like this, preferably in python?
I have a feeling I am asking a really stupid question but I just had to ask it. Googling around didn't help me.