Applied Programming/Files/Python3

binary_file.py
Binary files are usually thought of as being a sequence of bytes, which means the binary digits (bits) are grouped in eights. Binary files typically contain bytes that are intended to be interpreted as something other than text characters. Compiled computer programs are typical examples; indeed, compiled applications are sometimes referred to, particularly by programmers, as binaries. But binary files can also mean that they contain images, sounds, compressed versions of other files, etc.—in short, any type of file content whatsoever.

How to view file
This command is the same for both Windows and UNIX based systems.

Try It
Copy and paste the code above into one of the following free online development environments or use your own compiler / interpreter / IDE.