Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list to binary

List = [0, 1, 0, 1, 0, 1]
print ("The List is : " + str(List))
# binary list to integer conversion
result = int("".join(str(i) for i in List),2)
# result
print ("The value is : " + str(result))
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #list #binary
ADD COMMENT
Topic
Name
8+3 =