Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check if one value is in the list python

if ourlist.count('to') > 0:
   print('"to" exists in ourlist');
Source by www.parthpatel.net #
 
PREVIOUS NEXT
Tagged: #check #list #python
ADD COMMENT
Topic
Name
6+8 =