Created
August 22, 2020 05:38
-
-
Save BexTuychiev/5a0dc624e752cd41c72266e9dc1507dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a function that converts a digital file into binary | |
def convert_into_binary(file_path): | |
with open(file_path, 'rb') as file: | |
binary = file.read() | |
return binary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment