python binary code code example
Example 1: how to convert decimal to binary python
a = 5
#this prints the value of "a" in binary
print(bin(a))
Example 2: python binary
num = 10
bin(num)
a = 5
#this prints the value of "a" in binary
print(bin(a))
num = 10
bin(num)