Answers for "Convertion of number into binary using NumPy binary_repr"

0

Convertion of number into binary using NumPy binary_repr

# welcome to softhunt.net
# Python program explaining
# binary_repr() function

import numpy as np
num = 15

print ("Input number : ", num)

ans = np.binary_repr(num)
print ("binary representation of 15 : ", ans)
Posted by: Guest on April-29-2022

Code answers related to "Convertion of number into binary using NumPy binary_repr"

Python Answers by Framework

Browse Popular Code Answers by Language