Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert boolean type list to integer

num = [True, False, False]
int_num = list(map(int, num))
print(int_num)
 
PREVIOUS NEXT
Tagged: #convert #boolean #type #list #integer
ADD COMMENT
Topic
Name
6+9 =