Skip to content

Instantly share code, notes, and snippets.

View fmelihh's full-sized avatar
🐜
atom karıncaa !!

Furkan Melih Ercan fmelihh

🐜
atom karıncaa !!
View GitHub Profile
@fmelihh
fmelihh / binary-addition.py
Last active August 26, 2022 21:29
Binary Addition
def add_binary(a,b):
total = a + b
bits = []
while total > 0:
remainer = total % 2
total = total // 2
bits.append(str(remainer))