Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert list to binary python

_list = [1,2,3,4,5]
_list_to_binary = [ bin(list_item)[2:] for list_item in _list ]
# outputs ['1', '10', '11', '100', '101']


 
PREVIOUS NEXT
Tagged: #convert #list #binary #python
ADD COMMENT
Topic
Name
8+2 =