python 2.7 - Algorithm creation for converting Integer to binary -
def d_to_b(int_num): int_num = int(int_num) if int_num % 2 == 0: int_num // 2 = 1 return (int_num) else int_num % 2 == 1: int_num // 2 = 0 print(str(int_num))
how fix this?
Comments
Post a Comment