Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert string to boolean python

def str2bool(v):

   return str(v).lower() in ("yes", "true", "t", "1")
 
PREVIOUS NEXT
Tagged: #convert #string #boolean #python
ADD COMMENT
Topic
Name
7+9 =