DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Check If Element Is In List
list = ["a", "a", "a", "b", "c", "d"] if 'a' in list: print("a is in the list")
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Check
#If
#Element
#Is
#In
#List
ADD COMMENT
Topic
COMMENT
Name
2+6 =
Submit