what is Open Binary ?
Open Binary has a simple code to add and subtract binary numbers
✔️ Adding a binary number to another binary number
✔️ Subtracting binary numbers from other numbers
just download this code and place it in workspace
import OpenBinary
# -*- coding: utf-8 -*-
import OpenBinary
Create New Binary
binary = OpenBinary.Biner('1010') print(binary, chr(binary))The result should be
1010 c
1. Sum
binary = binary.sumWith("1001") print(binary, chr(binary))The result should be
10011 ✛
2. Subtract
binary = binary.subWith("1001") print(binary, chr(binary))The result should be
1010 c