kyu_6.binary_to_text_ascii_conversion package
Submodules
kyu_6.binary_to_text_ascii_conversion.binary_to_string module
Solution for -> Binary to Text (ASCII) Conversion.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- kyu_6.binary_to_text_ascii_conversion.binary_to_string.binary_to_string(binary: str) str[source]
Binary to string.
Write a function that takes in a binary string and returns the equivalent decoded text (the text is ASCII encoded).
Each 8 bits on the binary string represent 1 character on the ASCII table.
The input string will always be a valid binary string.
Characters can be in the range from “00000000” to “11111111” (inclusive)
Note: In the case of an empty binary string your function should return an empty string
How to convert binary string to and from ASCII text in Python: https://kite.com/python/answers/how-to-convert-binary-string-to-and-from-ascii-text-in-python https://stackoverflow.com/questions/7396849/convert-binary-to-ascii-and-vice-versa
- Parameters:
binary
- Returns:
kyu_6.binary_to_text_ascii_conversion.test_binary_to_string module
Test for -> Binary to Text (ASCII) Conversion.
Created by Egor Kostan. GitHub: https://github.com/ikostan
Module contents
Binary to Text (ASCII) Conversion.